| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final RubyException. | |
| private IRubyObject | |
| public static final ObjectAllocator | |
| private static final ObjectMarshal | |
| pack-priv IRubyObject | |
| private RaiseException | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static RubyThread. | |
| public IRubyObject | |
| public IRubyObject | |
| public void | |
| public IRubyObject | |
| private static IRubyObject | |
| protected RaiseException | |
| public void | copySpecialInstanceVariables(IRubyObject clone)
Overrides org. Implements org. Lots of MRI objects keep their state in non-lookupable ivars (e:g. |
| public static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public RubyException | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyStackTraceElement[] | |
| public Object | |
| public IRubyObject | |
| public String | |
| public List | getVariableList()
Overrides org. Implements org. Gets a list of all variables in this object. |
| public List | getVariableNameList()
Overrides org. Implements org. Gets a name list of all variables in this object. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyString | Returns: A RubyString containing the debug information.Overrides org. Overrides default org. inspects an object and return a kind of debug information |
| private static boolean | |
| private BacktraceData | |
| public IRubyObject | |
| public static RubyException | |
| public static RubyException | Returns: the new exception objectthe current thread context context, RubyClass the exception class exceptionClass, RubyString the message for the exception message)Construct a new RubyException object from the given exception class and message. |
| public static RubyException | Returns: the new exception objectthe current thread context context, RubyClass the exception class exceptionClass, IRubyObject... the arguments for the exception's constructor args)Construct a new RubyException object from the given exception class and message. |
| public static IRubyObject | |
| public static IRubyObject | |
| public RubyBoolean | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public void | |
| public void | printBacktrace(PrintStream
the PrintStream to which backtrace should be printed errorStream)Print the Ruby exception's backtrace to the given PrintStream. |
| public void | printBacktrace(PrintStream
the PrintStream to which backtrace should be printed errorStream, int skip)Print the Ruby exception's backtrace to the given PrintStream. |
| public static IRubyObject | Returns: set (or already generated) backtrace, null otherwiseNote Internal API. Retrieve the current backtrace object for a given exception. |
| public IRubyObject | |
| public IRubyObject | |
| public void | |
| public void | |
| public void | |
| public IRubyObject | |
| public static IRubyObject | |
| public <T> T | Returns: the converted resultthe target type to which this object should be converted target)Overrides org. Implements org. Coerce this Ruby exception to the requested Java type, if possible. |
| public RaiseException |
| backtrace | back to summary |
|---|---|
| private final RubyException. | |
| cause | back to summary |
|---|---|
| private IRubyObject cause | |
| EXCEPTION_ALLOCATOR | back to summary |
|---|---|
| public static final ObjectAllocator EXCEPTION_ALLOCATOR | |
| EXCEPTION_MARSHAL | back to summary |
|---|---|
| private static final ObjectMarshal<RubyException> EXCEPTION_MARSHAL | |
| message | back to summary |
|---|---|
| pack-priv IRubyObject message | |
| throwable | back to summary |
|---|---|
| private RaiseException throwable | |
| TRACE_HEAD | back to summary |
|---|---|
| public static final int TRACE_HEAD | |
| TRACE_MAX | back to summary |
|---|---|
| public static final int TRACE_MAX | |
| TRACE_TAIL | back to summary |
|---|---|
| public static final int TRACE_TAIL | |
| RubyException | back to summary |
|---|---|
| protected RubyException(Ruby runtime, RubyClass rubyClass) | |
| RubyException | back to summary |
|---|---|
| public RubyException(Ruby runtime, RubyClass rubyClass, String message) | |
| asBacktraceLocation | back to summary |
|---|---|
| private static RubyThread. | |
| backtrace | back to summary |
|---|---|
public IRubyObject backtrace()
| |
| backtrace_locations | back to summary |
|---|---|
public IRubyObject backtrace_locations(ThreadContext context)
| |
| captureBacktrace | back to summary |
|---|---|
| public void captureBacktrace(ThreadContext context) | |
| cause | back to summary |
|---|---|
public IRubyObject cause(ThreadContext context)
| |
| checkBacktrace | back to summary |
|---|---|
| private static IRubyObject checkBacktrace(ThreadContext context, IRubyObject obj) | |
| constructThrowable | back to summary |
|---|---|
| protected RaiseException constructThrowable(String message) | |
| copySpecialInstanceVariables | back to summary |
|---|---|
| public void copySpecialInstanceVariables(IRubyObject clone) Overrides org. Implements org. Doc from org. Lots of MRI objects keep their state in non-lookupable ivars (e:g. Range, Struct, etc). This method is responsible for dupping our java field equivalents
| |
| createExceptionClass | back to summary |
|---|---|
| public static RubyClass createExceptionClass(ThreadContext context, RubyClass Object) | |
| detailed_message | back to summary |
|---|---|
public IRubyObject detailed_message(ThreadContext context)
| |
| detailed_message | back to summary |
|---|---|
public IRubyObject detailed_message(ThreadContext context, IRubyObject opts)
| |
| detailed_message | back to summary |
|---|---|
public IRubyObject detailed_message(ThreadContext context, IRubyObject[] args)
| |
| exception | back to summary |
|---|---|
public static IRubyObject exception(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
| |
| exception | back to summary |
|---|---|
public RubyException exception(IRubyObject[] args)
| |
| full_message | back to summary |
|---|---|
public IRubyObject full_message(ThreadContext context)
| |
| full_message | back to summary |
|---|---|
public IRubyObject full_message(ThreadContext context, IRubyObject opts)
| |
| getBacktrace | back to summary |
|---|---|
| public IRubyObject getBacktrace() | |
| getBacktraceElements | back to summary |
|---|---|
| public RubyStackTraceElement[] getBacktraceElements() | |
| getCause | back to summary |
|---|---|
| public Object getCause() | |
| getMessage | back to summary |
|---|---|
public IRubyObject getMessage()
| |
| getMessageAsJavaString | back to summary |
|---|---|
| public String getMessageAsJavaString() | |
| getVariableList | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Gets a list of all variables in this object.
| |
| getVariableNameList | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Gets a name list of all variables in this object.
| |
| initialize | back to summary |
|---|---|
| public IRubyObject initialize(ThreadContext context) Overrides org.
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject arg0)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
| |
| initialize | back to summary |
|---|---|
| public IRubyObject initialize(IRubyObject[] args, Block block) | |
| inspect | back to summary |
|---|---|
| public RubyString inspect(ThreadContext context) Overrides org. Overrides default org. inspects an object and return a kind of debug information
| |
| isArrayOfStrings | back to summary |
|---|---|
| private static boolean isArrayOfStrings(IRubyObject backtrace) | |
| locationArrayToBacktrace | back to summary |
|---|---|
| private BacktraceData locationArrayToBacktrace(IRubyObject ary) | |
| message | back to summary |
|---|---|
public IRubyObject message(ThreadContext context)
| |
| newException | back to summary |
|---|---|
| public static RubyException newException(Ruby runtime, RubyClass exceptionClass, String msg) | |
| newException | back to summary |
|---|---|
| public static RubyException newException(ThreadContext context, RubyClass exceptionClass, RubyString message) Construct a new RubyException object from the given exception class and message.
| |
| newException | back to summary |
|---|---|
| public static RubyException newException(ThreadContext context, RubyClass exceptionClass, IRubyObject... args) Construct a new RubyException object from the given exception class and message.
| |
| newException | back to summary |
|---|---|
| public static IRubyObject newException(ThreadContext context, RubyClass exceptionClass, IRubyObject message)
Deprecated
| |
| op_eqq | back to summary |
|---|---|
public static IRubyObject op_eqq(ThreadContext context, IRubyObject recv, IRubyObject other)
| |
| op_equal | back to summary |
|---|---|
| public RubyBoolean op_equal(ThreadContext context, IRubyObject other) Overrides org. Implements org. Doc from org. rb_obj_equal Will by default use identity equality to compare objects. This follows the Ruby semantics. The name of this method doesn't follow the convention because hierarchy problems
| |
| prepareIntegratedBacktrace | back to summary |
|---|---|
| public void prepareIntegratedBacktrace(ThreadContext context, StackTraceElement[] javaTrace)
Deprecated
| |
| printBacktrace | back to summary |
|---|---|
| public void printBacktrace(PrintStream errorStream) Print the Ruby exception's backtrace to the given PrintStream.
| |
| printBacktrace | back to summary |
|---|---|
| public void printBacktrace(PrintStream errorStream, int skip) Print the Ruby exception's backtrace to the given PrintStream. This version accepts a number of lines to skip and is primarily used internally for exception printing where the first line is treated specially.
| |
| retrieveBacktrace | back to summary |
|---|---|
| public static IRubyObject retrieveBacktrace(RubyException exception) Retrieve the current backtrace object for a given exception.
| |
| set_backtrace | back to summary |
|---|---|
| public IRubyObject set_backtrace(IRubyObject obj)
Deprecated since 10.0.
| |
| set_backtrace | back to summary |
|---|---|
public IRubyObject set_backtrace(ThreadContext context, IRubyObject obj)
| |
| setBacktrace | back to summary |
|---|---|
| public void setBacktrace(ThreadContext context, IRubyObject obj) | |
| setCause | back to summary |
|---|---|
| public void setCause(IRubyObject cause) | |
| setMessage | back to summary |
|---|---|
| public void setMessage(IRubyObject message) Set the message for this NameError.
| |
| to_s | back to summary |
|---|---|
| public IRubyObject to_s(ThreadContext context) Overrides org.
| |
| to_tty_p | back to summary |
|---|---|
public static IRubyObject to_tty_p(ThreadContext context, IRubyObject recv)
| |
| toJava | back to summary |
|---|---|
| public <T> T toJava(Class<T> target) Overrides org. Implements org. Coerce this Ruby exception to the requested Java type, if possible. If the requested type is a supertype of RaiseException, the attached throwable will be returned. Otherwise, it will fall back on RubyBasicObject toJava logic.
| |
| toThrowable | back to summary |
|---|---|
| public RaiseException toThrowable() Get a throwable suitable for throwing in Java.
The throwable here will be constructed lazily by calling constructThrowable and then cached for future calls.
All throwables returned by Ruby exception objects will descend from RaiseException and follow the Throwable
hierarchy below | |
| Modifier and Type | Field and Description |
|---|---|
| private BacktraceData | |
| private IRubyObject | |
| private IRubyObject |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public IRubyObject | Returns: the generated Ruby backtraceGenerate a new backtrace (or returns nil if no backtrace data exists). |
| public IRubyObject | Returns: the array of backtrace locationsthe current thread context context)Generate an array of backtrace location objects for this backtrace. |
| backtraceData | back to summary |
|---|---|
| private BacktraceData backtraceData | |
| backtraceLocations | back to summary |
|---|---|
| private IRubyObject backtraceLocations | |
| backtraceObject | back to summary |
|---|---|
| private IRubyObject backtraceObject | |
| Backtrace | back to summary |
|---|---|
| private Backtrace() | |
| copy | back to summary |
|---|---|
| public void copy(RubyException. | |
| generateBacktrace | back to summary |
|---|---|
| public IRubyObject generateBacktrace(Ruby runtime) Generate a new backtrace (or returns nil if no backtrace data exists).
| |
| generateBacktraceLocations | back to summary |
|---|---|
| public IRubyObject generateBacktraceLocations(ThreadContext context) Generate an array of backtrace location objects for this backtrace.
| |