Top Fields Constructors Methods
org.jruby

public Class NativeException

extends RubyException
Class Inheritance
Annotations
@Deprecated
@JRubyClass
name:NativeException
parent:RuntimeError
Imports
java.lang.reflect.Member, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.javasupport.Java, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Deprecated

Field Summary

Modifier and TypeField and Description
private final Throwable
public static final String
private final String
Inherited from org.jruby.RubyException:
EXCEPTION_ALLOCATORmessageTRACE_HEADTRACE_MAXTRACE_TAIL

Constructor Summary

AccessConstructor and Description
public
NativeException(Ruby runtime, RubyClass rubyClass, Throwable cause)

private
NativeException(Ruby runtime, RubyClass rubyClass, Throwable cause, String message)

private
NativeException(Ruby runtime, RubyClass rubyClass)

Method Summary

Modifier and TypeMethod and Description
public final IRubyObject
private static String
public final IRubyObject
public final IRubyObject
cause(Block unusedBlock)
Deprecated

public static RubyClass
createClass(ThreadContext context, RubyClass baseClass, RubyClass Object)

public final Throwable
public final IRubyObject
public final String
private static RubyArray<T extends IRubyObject>
joinedBacktrace(final Ruby runtime, final RubyArray<T extends IRubyObject> rTrace, final StackTraceElement[] jTrace)

private static String
public void
trimStackTrace(Member target)
Deprecated

Inherited from org.jruby.RubyException:
backtrace_locationscaptureBacktracecauseconstructThrowablecopySpecialInstanceVariablescreateExceptionClassdetailed_messagedetailed_messagedetailed_messageexceptionexceptionfull_messagefull_messagegetBacktracegetBacktraceElementsgetVariableListgetVariableNameListinitializeinitializeinitializeinitializeinspectmessagenewExceptionnewExceptionnewExceptionnewExceptionop_eqqop_equalprepareIntegratedBacktraceprintBacktraceprintBacktraceretrieveBacktraceset_backtraceset_backtracesetBacktracesetCausesetMessageto_sto_tty_ptoJavatoThrowable

Field Detail

causeback to summary
private final Throwable cause

Hides org.jruby.RubyException.cause.

CLASS_NAMEback to summary
public static final String CLASS_NAME
messageAsJavaStringback to summary
private final String messageAsJavaString

Constructor Detail

NativeExceptionback to summary
public NativeException(Ruby runtime, RubyClass rubyClass, Throwable cause)
NativeExceptionback to summary
private NativeException(Ruby runtime, RubyClass rubyClass, Throwable cause, String message)
NativeExceptionback to summary
private NativeException(Ruby runtime, RubyClass rubyClass)

Method Detail

backtraceback to summary
public final IRubyObject backtrace()

Overrides org.jruby.RubyException.backtrace.

Annotations
@Override
buildMessageback to summary
private static String buildMessage(Throwable cause)
causeback to summary
public final IRubyObject cause()
Annotations
@JRubyMethod
causeback to summary
public final IRubyObject cause(Block unusedBlock)

Deprecated

Annotations
@Deprecated
createClassback to summary
public static RubyClass createClass(ThreadContext context, RubyClass baseClass, RubyClass Object)
getCauseback to summary
public final Throwable getCause()

Overrides org.jruby.RubyException.getCause.

getMessageback to summary
public final IRubyObject getMessage()

Overrides org.jruby.RubyException.getMessage.

Returns:IRubyObject

Doc from org.jruby.RubyException.getMessage.

error message if provided or nil

Annotations
@Override
getMessageAsJavaStringback to summary
public final String getMessageAsJavaString()

Overrides org.jruby.RubyException.getMessageAsJavaString.

Annotations
@Override
joinedBacktraceback to summary
private static RubyArray<T extends IRubyObject> joinedBacktrace(final Ruby runtime, final RubyArray<T extends IRubyObject> rTrace, final StackTraceElement[] jTrace)
searchStackMessageback to summary
private static String searchStackMessage(Throwable cause)
trimStackTraceback to summary
public void trimStackTrace(Member target)

Deprecated

Annotations
@Deprecated