本文整理了Java中jline.internal.Log.error()
方法的一些代码示例,展示了Log.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log.error()
方法的具体详情如下:
包路径:jline.internal.Log
类名称:Log
方法名:error
暂无
代码示例来源:origin: jline/jline
public void enableInterruptCharacter()
{
try {
if (intr != null) {
settings.set("intr", intr);
}
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to enable interrupt character", e);
}
}
代码示例来源:origin: jline/jline
public void enableLitteralNextCharacter()
{
try {
if (lnext != null) {
settings.set("lnext", lnext);
}
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to enable litteral next character", e);
}
}
代码示例来源:origin: jline/jline
public void disableInterruptCharacter()
{
try {
intr = getSettings().getPropertyAsString("intr");
if ("<undef>".equals(intr)) {
intr = null;
}
settings.undef("intr");
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to disable interrupt character", e);
}
}
代码示例来源:origin: jline/jline
public void disableLitteralNextCharacter()
{
try {
lnext = getSettings().getPropertyAsString("lnext");
if ("<undef>".equals(lnext)) {
lnext = null;
}
settings.undef("lnext");
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to disable litteral next character", e);
}
}
代码示例来源:origin: jline/jline
@Override
public synchronized void setEchoEnabled(final boolean enabled) {
try {
if (enabled) {
settings.set("echo");
}
else {
settings.set("-echo");
}
super.setEchoEnabled(enabled);
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to ", enabled ? "enable" : "disable", " echo", e);
}
}
代码示例来源:origin: jline/jline
Log.error("Paste failed: ", e);
代码示例来源:origin: jline/jline
Log.error("Could not expand event", e);
beep();
buf.clear();
代码示例来源:origin: jline/jline
Log.error("Failed to construct terminal; falling back to unsupported", e);
t = new UnsupportedTerminal();
Log.error("Terminal initialization failed; falling back to unsupported", e);
return new UnsupportedTerminal();
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
public void enableLitteralNextCharacter()
{
try {
if (lnext != null) {
settings.set("lnext", lnext);
}
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to enable litteral next character", e);
}
}
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
public void enableInterruptCharacter()
{
try {
if (intr != null) {
settings.set("intr", intr);
}
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to enable interrupt character", e);
}
}
代码示例来源:origin: org.onap.dmaap.messagerouter.msgrtr/msgrtr
public String createUrlPath(int timeoutMs, int limit) {
final StringBuilder url = new StringBuilder(CambriaPublisherUtility.makeConsumerUrl(fTopic, fGroup, fId));
final StringBuilder adds = new StringBuilder();
if (timeoutMs > -1) {
adds.append("timeout=").append(timeoutMs);
}
if (limit > -1) {
if (adds.length() > 0) {
adds.append("&");
}
adds.append("limit=").append(limit);
}
if (fFilter != null && fFilter.length() > 0) {
try {
if (adds.length() > 0) {
adds.append("&");
}
adds.append("filter=").append(URLEncoder.encode(fFilter, "UTF-8"));
} catch (UnsupportedEncodingException e) {
Log.error("Failed due to UnsupportedEncodingException" + e);
}
}
if (adds.length() > 0) {
url.append("?").append(adds.toString());
}
return url.toString();
}
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
public void disableInterruptCharacter()
{
try {
intr = getSettings().getPropertyAsString("intr");
if ("<undef>".equals(intr)) {
intr = null;
}
settings.undef("intr");
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to disable interrupt character", e);
}
}
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
public void disableLitteralNextCharacter()
{
try {
lnext = getSettings().getPropertyAsString("lnext");
if ("<undef>".equals(lnext)) {
lnext = null;
}
settings.undef("lnext");
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to disable litteral next character", e);
}
}
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
@Override
public synchronized void setEchoEnabled(final boolean enabled) {
try {
if (enabled) {
settings.set("echo");
}
else {
settings.set("-echo");
}
super.setEchoEnabled(enabled);
}
catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
Log.error("Failed to ", enabled ? "enable" : "disable", " echo", e);
}
}
代码示例来源:origin: org.onap.dmaap.messagerouter.msgrtr/msgrtr
@Override
public Iterable<String> fetch(int timeoutMs, int limit) throws IOException {
final LinkedList<String> msgs = new LinkedList<String>();
final String urlPath = createUrlPath(timeoutMs, limit);
getLog().info("UEB GET " + urlPath);
try {
final JSONObject o = get(urlPath);
if (o != null) {
final JSONArray a = o.getJSONArray("result");
if (a != null) {
for (int i = 0; i < a.length(); i++) {
msgs.add(a.getString(i));
}
}
}
} catch (HttpObjectNotFoundException e) {
// this can happen if the topic is not yet created. ignore.
Log.error("Failed due to topic is not yet created" + e);
} catch (JSONException e) {
// unexpected response
reportProblemWithResponse();
Log.error("Failed due to jsonException", e);
} catch (HttpException e) {
throw new IOException(e);
}
return msgs;
}
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
Log.error("Paste failed: ", e);
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
Log.error("Failed to construct terminal; falling back to unsupported", e);
t = new UnsupportedTerminal();
Log.error("Terminal initialization failed; falling back to unsupported", e);
return new UnsupportedTerminal();
代码示例来源:origin: com.typesafe.sbt/incremental-compiler
Log.error("Could not expand event", e);
beep();
buf.clear();
代码示例来源:origin: com.oracle.substratevm/library-support
@SuppressWarnings("unused")
@Substitute
public static Terminal create(String ttyDevice) {
Terminal t;
try {
t = new UnixTerminal();
t.init();
} catch (Exception e) {
Log.error("Failed to construct terminal; falling back to UnsupportedTerminal", e);
t = new UnsupportedTerminal();
}
Log.debug("Created Terminal: ", t);
return t;
}
}
内容来源于网络,如有侵权,请联系作者删除!