本文整理了Java中org.jruby.Ruby.newLightweightErrnoException
方法的一些代码示例,展示了Ruby.newLightweightErrnoException
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.newLightweightErrnoException
方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:newLightweightErrnoException
[英]Generate one of the ERRNO exceptions. This differs from the normal logic by avoiding the generation of a backtrace. Many ERRNO values are expected, such as EAGAIN, and JRuby pays a very high cost to generate backtraces that are never used. The flags -Xerrno.backtrace=true or the property jruby.errno.backtrace=true forces all errno exceptions to generate a backtrace.
[中]生成一个ERRNO异常。这与正常逻辑不同,因为它避免了回溯的生成。很多ERRNO值都是预期值,比如EAGAIN,而JRuby为生成从未使用过的回溯支付了非常高的成本。旗帜——克瑟诺。backtrace=true或属性jruby。呃,不。backtrace=true强制所有errno异常生成回溯。
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEAGAINReadableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitReadable"), message);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEAGAINError(String message) {
return newLightweightErrnoException(getErrno().getClass("EAGAIN"), message);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEAGAINError(String message) {
return newLightweightErrnoException(getErrno().getClass("EAGAIN"), message);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEAGAINReadableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitReadable"), message);
}
代码示例来源:origin: org.jruby/jruby-complete
public RaiseException newErrnoEINPROGRESSWritableError() {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), "");
}
代码示例来源:origin: org.jruby/jruby-complete
public RaiseException newErrnoEAGAINError(String message) {
return newLightweightErrnoException(getErrno().getClass("EAGAIN"), message);
}
代码示例来源:origin: org.jruby/jruby-complete
public RaiseException newErrnoEAGAINReadableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitReadable"), message);
}
代码示例来源:origin: org.jruby/jruby-complete
public RaiseException newErrnoEAGAINWritableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitWritable"), message);
}
代码示例来源:origin: org.jruby/jruby-complete
public RaiseException newErrnoEINPROGRESSWritableError(String message) {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), message);
}
代码示例来源:origin: org.jruby/jruby-core
public RaiseException newErrnoEAGAINError(String message) {
return newLightweightErrnoException(getErrno().getClass("EAGAIN"), message);
}
代码示例来源:origin: org.jruby/jruby-core
public RaiseException newErrnoEAGAINWritableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitWritable"), message);
}
代码示例来源:origin: org.jruby/jruby-core
public RaiseException newErrnoEAGAINReadableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitReadable"), message);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEAGAINWritableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitWritable"), message);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEINPROGRESSWritableError() {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), "");
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEINPROGRESSWritableError() {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), "");
}
代码示例来源:origin: org.jruby/jruby-core
public RaiseException newErrnoEINPROGRESSWritableError() {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), "");
}
代码示例来源:origin: org.jruby/jruby-core
public RaiseException newErrnoEINPROGRESSWritableError(String message) {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), message);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEINPROGRESSWritableError(String message) {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), message);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEAGAINWritableError(String message) {
return newLightweightErrnoException(getModule("IO").getClass("EAGAINWaitWritable"), message);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public RaiseException newErrnoEINPROGRESSWritableError(String message) {
return newLightweightErrnoException(getIO().getClass("EINPROGRESSWaitWritable"), message);
}
内容来源于网络,如有侵权,请联系作者删除!