Modifier and Type | Method and Description |
---|---|
protected RaiseException |
RubyTypeError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubySystemStackError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyThreadError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyConcurrencyError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyRegexpError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyRuntimeError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyFatal.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyNoMemoryError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyLocalJumpError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyNameError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyException.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyDomainError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyNotImplementedError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyZeroDivisionError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyIndexError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyStopIteration.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyUncaughtThrowError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyStandardError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubySignalException.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyArgumentError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyRangeError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyKeyError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubySystemCallError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyInterrupt.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyInterruptedRegexpError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyFrozenError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyIOError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubySyntaxError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubySecurityError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyEncodingError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyEncodingError.RubyCompatibilityError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyEncodingError.RubyInvalidByteSequenceError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyEncodingError.RubyUndefinedConversionError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyEncodingError.RubyConverterNotFoundError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyFloatDomainError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyEOFError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyScriptError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyLoadError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubySystemExit.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyNoMethodError.constructThrowable(java.lang.String message) |
protected RaiseException |
RubyFiberError.constructThrowable(java.lang.String message) |
RaiseException |
Ruby.newArgumentError(int got,
int expected) |
RaiseException |
Ruby.newArgumentError(int got,
int min,
int max) |
RaiseException |
Ruby.newArgumentError(java.lang.String message) |
RaiseException |
Ruby.newArgumentError(java.lang.String name,
int got,
int expected) |
RaiseException |
Ruby.newArgumentError(java.lang.String name,
int got,
int min,
int max) |
RaiseException |
Ruby.newConcurrencyError(java.lang.String message) |
RaiseException |
Ruby.newConverterNotFoundError(java.lang.String message) |
RaiseException |
Ruby.newEncodingCompatibilityError(java.lang.String message) |
RaiseException |
Ruby.newEncodingError(java.lang.String message) |
RaiseException |
Ruby.newEOFError() |
RaiseException |
Ruby.newEOFError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEACCESError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEADDRFromBindException(java.net.BindException be)
Deprecated.
|
RaiseException |
Ruby.newErrnoEADDRFromBindException(java.net.BindException be,
java.lang.String contextMessage) |
RaiseException |
Ruby.newErrnoEADDRINUSEError() |
RaiseException |
Ruby.newErrnoEADDRINUSEError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEADDRNOTAVAILError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEAFNOSUPPORTError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEAGAINError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEAGAINReadableError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEAGAINWritableError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEBADFError() |
RaiseException |
Ruby.newErrnoEBADFError(java.lang.String message) |
RaiseException |
Ruby.newErrnoECHILDError() |
RaiseException |
Ruby.newErrnoECONNABORTEDError() |
RaiseException |
Ruby.newErrnoECONNREFUSEDError() |
RaiseException |
Ruby.newErrnoECONNREFUSEDError(java.lang.String message) |
RaiseException |
Ruby.newErrnoECONNRESETError() |
RaiseException |
Ruby.newErrnoEDESTADDRREQError(java.lang.String func) |
RaiseException |
Ruby.newErrnoEDOMError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEEXISTError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEHOSTUNREACHError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEINPROGRESSError() |
RaiseException |
Ruby.newErrnoEINPROGRESSError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEINPROGRESSWritableError() |
RaiseException |
Ruby.newErrnoEINPROGRESSWritableError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEINTRError() |
RaiseException |
Ruby.newErrnoEINVALError() |
RaiseException |
Ruby.newErrnoEINVALError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEISCONNError() |
RaiseException |
Ruby.newErrnoEISCONNError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEISDirError() |
RaiseException |
Ruby.newErrnoEISDirError(java.lang.String message) |
RaiseException |
Ruby.newErrnoELOOPError() |
RaiseException |
Ruby.newErrnoEMFILEError() |
RaiseException |
Ruby.newErrnoEMSGSIZEError() |
RaiseException |
Ruby.newErrnoENETUNREACHError() |
RaiseException |
Ruby.newErrnoENFILEError() |
RaiseException |
Ruby.newErrnoENOENTError() |
RaiseException |
Ruby.newErrnoENOENTError(java.lang.String message) |
RaiseException |
Ruby.newErrnoENOPROTOOPTError() |
RaiseException |
Ruby.newErrnoENOTCONNError() |
RaiseException |
Ruby.newErrnoENOTCONNError(java.lang.String message) |
RaiseException |
Ruby.newErrnoENOTDIRError(java.lang.String message) |
RaiseException |
Ruby.newErrnoENOTEMPTYError(java.lang.String message) |
RaiseException |
Ruby.newErrnoENOTSOCKError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEOPNOTSUPPError(java.lang.String message) |
RaiseException |
Ruby.newErrnoEPERMError(java.lang.String name) |
RaiseException |
Ruby.newErrnoEPIPEError() |
RaiseException |
Ruby.newErrnoESPIPEError() |
RaiseException |
Ruby.newErrnoESPIPEError(java.lang.String message) |
RaiseException |
Ruby.newErrnoESRCHError() |
RaiseException |
Ruby.newErrnoEWOULDBLOCKError() |
RaiseException |
Ruby.newErrnoEXDEVError(java.lang.String message) |
RaiseException |
Ruby.newErrnoFromBindException(java.net.BindException be,
java.lang.String contextMessage) |
RaiseException |
Ruby.newErrnoFromErrno(jnr.constants.platform.Errno errno,
java.lang.String message) |
RaiseException |
Ruby.newErrnoFromInt(int errno) |
RaiseException |
Ruby.newErrnoFromInt(int errno,
java.lang.String message) |
RaiseException |
Ruby.newErrnoFromInt(int errno,
java.lang.String methodName,
java.lang.String message) |
RaiseException |
Ruby.newErrnoFromLastPOSIXErrno() |
RaiseException |
Ruby.newFiberError(java.lang.String message) |
RaiseException |
Ruby.newFloatDomainError(java.lang.String message) |
RaiseException |
Ruby.newFrozenError(RubyModule type) |
RaiseException |
Ruby.newFrozenError(java.lang.String objectType) |
RaiseException |
Ruby.newFrozenError(java.lang.String objectType,
boolean runtimeError) |
RaiseException |
Ruby.newIllegalSequence(java.lang.String message)
Deprecated.
|
RaiseException |
Ruby.newIndexError(java.lang.String message) |
RaiseException |
Ruby.newInterruptedRegexpError(java.lang.String message) |
RaiseException |
Ruby.newInvalidByteSequenceError(java.lang.String message) |
RaiseException |
Ruby.newInvalidEncoding(java.lang.String message)
Deprecated.
|
RaiseException |
Ruby.newIOError(java.lang.String message) |
RaiseException |
Ruby.newIOErrorFromException(java.io.IOException ex)
Java does not give us enough information for specific error conditions
so we are reduced to divining them through string matches...
|
RaiseException |
Ruby.newKeyError(java.lang.String message,
IRubyObject recv,
IRubyObject key) |
RaiseException |
Ruby.newLightweightStopIterationError(java.lang.String message)
Deprecated.
|
RaiseException |
Ruby.newLoadError(java.lang.String message) |
RaiseException |
Ruby.newLoadError(java.lang.String message,
java.lang.String path) |
RaiseException |
Ruby.newLocalJumpError(RubyLocalJumpError.Reason reason,
IRubyObject exitValue,
java.lang.String message) |
RaiseException |
Ruby.newLocalJumpErrorNoBlock() |
RaiseException |
Ruby.newMathDomainError(java.lang.String message) |
RaiseException |
Ruby.newNameError(java.lang.String message,
IRubyObject recv,
IRubyObject name) |
RaiseException |
Ruby.newNameError(java.lang.String message,
IRubyObject recv,
IRubyObject name,
boolean privateCall)
Construct a NameError that formats its message with an sprintf format string.
|
RaiseException |
Ruby.newNameError(java.lang.String message,
IRubyObject recv,
java.lang.String name)
Construct a NameError that formats its message with an sprintf format string.
|
RaiseException |
Ruby.newNameError(java.lang.String message,
IRubyObject recv,
java.lang.String name,
boolean privateCall)
Construct a NameError that formats its message with an sprintf format string and has private_call? set to given.
|
RaiseException |
Ruby.newNameError(java.lang.String message,
java.lang.String name)
Construct a NameError with a pre-formatted message and name.
|
RaiseException |
Ruby.newNameError(java.lang.String message,
java.lang.String name,
java.lang.Throwable origException)
Construct a NameError with an optional originating exception and a pre-formatted message.
|
RaiseException |
Ruby.newNameError(java.lang.String message,
java.lang.String name,
java.lang.Throwable exception,
boolean printWhenVerbose)
Construct a NameError with the given pre-formatted message, name, and optional original exception.
|
RaiseException |
Ruby.newNameErrorObject(java.lang.String message,
IRubyObject name)
Deprecated.
|
RaiseException |
Ruby.newNoMethodError(java.lang.String message,
IRubyObject recv,
java.lang.String name,
RubyArray args) |
RaiseException |
Ruby.newNoMethodError(java.lang.String message,
IRubyObject recv,
java.lang.String name,
RubyArray args,
boolean privateCall)
Construct a NoMethodError that formats its message with an sprintf format string.
|
RaiseException |
Ruby.newNoMethodError(java.lang.String message,
java.lang.String name,
IRubyObject args)
Construct a NoMethodError with a pre-formatted message.
|
RaiseException |
Ruby.newNotImplementedError(java.lang.String message) |
RaiseException |
Ruby.newRaiseException(RubyClass exceptionClass,
java.lang.String message) |
RaiseException |
Ruby.newRangeError(java.lang.String message) |
RaiseException |
Ruby.newRedoLocalJumpError() |
RaiseException |
Ruby.newRegexpError(java.lang.String message) |
RaiseException |
Ruby.newRuntimeError(java.lang.String message) |
RaiseException |
Ruby.newSecurityError(java.lang.String message) |
RaiseException |
Ruby.newStandardError(java.lang.String message) |
RaiseException |
Ruby.newStopIteration(IRubyObject result,
java.lang.String message)
Generate a StopIteration exception.
|
RaiseException |
Ruby.newSyntaxError(java.lang.String message) |
RaiseException |
Ruby.newSystemCallError(java.lang.String message) |
RaiseException |
Ruby.newSystemExit(int status) |
RaiseException |
Ruby.newSystemExit(int status,
java.lang.String message) |
RaiseException |
Ruby.newSystemStackError(java.lang.String message) |
RaiseException |
Ruby.newSystemStackError(java.lang.String message,
java.lang.StackOverflowError error) |
RaiseException |
Ruby.newThreadError(java.lang.String message) |
RaiseException |
Ruby.newTypeError(IRubyObject receivedObject,
RubyClass expectedType) |
RaiseException |
Ruby.newTypeError(IRubyObject receivedObject,
RubyModule expectedType) |
RaiseException |
Ruby.newTypeError(IRubyObject receivedObject,
java.lang.String expectedType) |
RaiseException |
Ruby.newTypeError(java.lang.String message) |
RaiseException |
Ruby.newUndefinedConversionError(java.lang.String message) |
RaiseException |
Ruby.newZeroDivisionError() |
RaiseException |
RubyException.toThrowable()
Get a throwable suitable for throwing in Java.
|
Modifier and Type | Method and Description |
---|---|
void |
RubyThread.exceptionRaised(RaiseException exception) |
protected static int |
Main.handleRaiseException(RaiseException ex)
This is only used from the main(String[]) path, in which case the err for this
run should be System.err.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RubyModule.checkForCyclicPrepend(RubyModule m) |
void |
RubyModule.checkValidBindTargetFrom(ThreadContext context,
RubyModule originModule) |
Modifier and Type | Class and Description |
---|---|
class |
ArgumentError
Represents a Ruby ArgumentError as a throwable Java exception.
|
class |
ConcurrencyError
Represents a Ruby ConcurrencyError as a throwable Java exception.
|
class |
DomainError
Represents a Ruby DomainError as a throwable Java exception.
|
class |
EncodingError
Represents a Ruby EncodingError as a throwable Java exception.
|
static class |
EncodingError.CompatibilityError
Represents a Ruby CompatibilityError as a throwable Java exception.
|
static class |
EncodingError.ConverterNotFoundError
Represents a Ruby ConverterNotFoundError as a throwable Java exception.
|
static class |
EncodingError.InvalidByteSequenceError
Represents a Ruby InvalidByteSequenceError as a throwable Java exception.
|
static class |
EncodingError.UndefinedConversionError
Represents a Ruby UndefinedConversionError as a throwable Java exception.
|
class |
EOFError
Represents a Ruby EOFError as a throwable Java exception.
|
class |
Exception
Represents a Ruby Exception as a throwable Java exception.
|
class |
Fatal
Represents a RubyFatal as a throwable Java exception.
|
class |
FiberError
Represents a Ruby FiberError as a throwable Java exception.
|
class |
FloatDomainError
Represents a Ruby FloatDomainError as a throwable Java exception.
|
class |
FrozenError
Represents a Ruby FrozenError as a throwable Java exception.
|
class |
IndexError
Represents a Ruby IndexError as a throwable Java exception.
|
class |
Interrupt
Represents a Ruby Interrupt as a throwable Java exception.
|
class |
InterruptedRegexpError
Represents a Ruby InterruptedRegexpError as a throwable Java exception.
|
class |
IOError
Represents a Ruby IOError as a throwable Java exception.
|
class |
KeyError
Represents a Ruby KeyError as a throwable Java exception.
|
class |
LoadError
Represents a Ruby LoadError as a throwable Java exception.
|
class |
LocalJumpError
Represents a Ruby LocalJumpError as a throwable Java exception.
|
class |
NameError
Represents a Ruby NameError as a throwable Java exception.
|
class |
NoMemoryError
Represents a Ruby NoMemoryError as a throwable Java exception.
|
class |
NoMethodError
Represents a Ruby NoMethodError as a throwable Java exception.
|
class |
NotImplementedError
Represents a Ruby NotImplementedError as a throwable Java exception.
|
class |
RangeError
Represents a Ruby RangeError as a throwable Java exception.
|
class |
RegexpError
Represents a Ruby RegexpError as a throwable Java exception.
|
class |
RuntimeError
Represents a Ruby RuntimeError as a throwable Java exception.
|
class |
ScriptError |
class |
SecurityError
Represents a Ruby SecurityError as a throwable Java exception.
|
class |
SignalException
Represents a Ruby SignalException as a throwable Java exception.
|
class |
StandardError
Represents a RubyStandardError as a throwable Java exception.
|
class |
StopIteration
Represents a Ruby StopIteration as a throwable Java exception.
|
class |
SyntaxError
Represents a Ruby SyntaxError as a throwable Java exception.
|
class |
SystemCallError
Represents a Ruby SystemCallError as a throwable Java exception.
|
class |
SystemExit
Represents a RubySystemExit as a throwable Java exception.
|
class |
SystemStackError |
class |
ThreadError
Represents a Ruby ThreadError as a throwable Java exception.
|
class |
TypeError
Represents a Ruby TypeError as a throwable Java exception.
|
class |
UncaughtThrowError
Represents a Ruby UncaughtThrowError as a throwable Java exception.
|
class |
ZeroDivisionError
Represents a Ruby ZeroDivisionError as a throwable Java exception.
|
Modifier and Type | Method and Description |
---|---|
RaiseException |
JumpException.FlowControlException.buildException(Ruby runtime) |
static RaiseException |
RaiseException.createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause)
Deprecated.
|
static RaiseException |
RaiseException.createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause,
java.lang.reflect.Member target)
Deprecated.
|
static RaiseException |
RaiseException.from(RubyException exception,
IRubyObject backtrace)
Deprecated.
|
static RaiseException |
RaiseException.from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg) |
static RaiseException |
RaiseException.from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace) |
Modifier and Type | Method and Description |
---|---|
protected RaiseException |
InvalidMemoryIO.ex() |
Modifier and Type | Method and Description |
---|---|
protected RaiseException |
Queue.createInterruptedError(ThreadContext context,
java.lang.String methodName) |
Modifier and Type | Method and Description |
---|---|
static RaiseException |
IRRuntimeHelpers.newRequiredKeywordArgumentError(ThreadContext context,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
static RaiseException |
JavaMethod.newArgSizeMismatchError(Ruby runtime,
java.lang.Class... argTypes) |
static RaiseException |
JavaMethod.newMethodNotFoundError(Ruby runtime,
java.lang.Class target,
java.lang.String prettyName,
java.lang.String simpleName) |
static RaiseException |
JavaClass.undefinedFieldError(Ruby runtime,
java.lang.String javaClassName,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
JavaObject |
JavaProxyConstructor.newInstance(IRubyObject self,
IRubyObject arg0) |
JavaObject |
JavaProxyConstructor.newInstance(IRubyObject self,
IRubyObject[] args) |
JavaObject |
JavaProxyConstructor.newInstance(IRubyObject self,
java.lang.Object[] args) |
Modifier and Type | Method and Description |
---|---|
static RaiseException |
Helpers.newIOErrorFromException(Ruby runtime,
java.io.IOException ex)
Java does not give us enough information for specific error conditions
so we are reduced to divining them through string matches...
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
Helpers.getLocalJumpTypeOrRethrow(RaiseException re) |
static IRubyObject |
Helpers.unwrapLocalJumpErrorValue(RaiseException re) |
Modifier and Type | Method and Description |
---|---|
static Visibility |
Helpers.performNormalMethodChecksAndDetermineVisibility(Ruby runtime,
RubyModule clazz,
RubySymbol symbol,
Visibility visibility) |
static RubyClass |
Helpers.performSingletonMethodChecks(Ruby runtime,
IRubyObject receiver,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
LoadService.checkEmptyLoad(java.lang.String file) |
protected void |
LoadService.reraiseRaiseExceptions(java.lang.Throwable e) |
protected LoadServiceResource |
LoadService.tryResourceAsIs(java.lang.String namePlusSuffix)
Deprecated.
|
protected LoadServiceResource |
LoadService.tryResourceAsIs(java.lang.String namePlusSuffix,
java.lang.String debugName)
Deprecated.
|
protected LoadServiceResource |
LoadService.tryResourceFromCWD(LoadService.SearchState state,
java.lang.String baseName,
LoadService.SuffixType suffixType)
Deprecated.
|
protected LoadServiceResource |
LoadService.tryResourceFromDotSlash(LoadService.SearchState state,
java.lang.String baseName,
LoadService.SuffixType suffixType)
Deprecated.
|
protected LoadServiceResource |
LoadService.tryResourceFromHome(LoadService.SearchState state,
java.lang.String baseName,
LoadService.SuffixType suffixType)
Deprecated.
|
protected LoadServiceResource |
LoadService.tryResourceFromLoadPath(java.lang.String namePlusSuffix,
java.lang.String loadPathEntry)
Deprecated.
|
boolean |
LoadService.ScriptClassSearcher.trySearch(LoadService.SearchState state)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract RaiseException |
ResourceException.newRaiseException(Ruby runtime) |
RaiseException |
ResourceException.IOError.newRaiseException(Ruby runtime)
Deprecated.
|
static RaiseException |
TypeConverter.newTypeError(IRubyObject obj,
RubyClass target,
java.lang.String convertMethod,
IRubyObject val) |
static RaiseException |
TypeConverter.newTypeError(Ruby runtime,
IRubyObject obj,
RubyClass target,
java.lang.String methodName,
IRubyObject val) |
Modifier and Type | Method and Description |
---|---|
static RaiseException |
EncodingUtils.econvOpenExc(ThreadContext context,
byte[] sourceEncoding,
byte[] destinationEncoding,
int ecflags) |
static RaiseException |
EncodingUtils.makeEconvException(Ruby runtime,
org.jcodings.transcode.EConv ec) |
Copyright © 2001-2021 JRuby. All Rights Reserved.