public class TraceType
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TraceType.Format |
static class |
TraceType.Gather |
Constructor and Description |
---|
TraceType(TraceType.Gather gather,
TraceType.Format format) |
Modifier and Type | Method and Description |
---|---|
static void |
dumpBacktrace(RubyException exception) |
static void |
dumpCaller(RubyArray trace) |
static void |
dumpException(RubyException exception) |
static void |
dumpWarning(RubyStackTraceElement[] trace) |
static IRubyObject |
generateMRIBacktrace(Ruby runtime,
RubyStackTraceElement[] trace) |
BacktraceData |
getBacktrace(ThreadContext context,
boolean nativeException)
Get a normal Ruby backtrace, using the current Gather type.
|
BacktraceData |
getIntegratedBacktrace(ThreadContext context,
java.lang.StackTraceElement[] javaTrace)
Get an integrated Ruby/Java backtrace if the current Gather type is NORMAL
|
static void |
logBacktrace(RubyStackTraceElement[] trace) |
java.lang.String |
printBacktrace(RubyException exception,
boolean console) |
protected static java.lang.String |
printBacktraceJRuby(RubyException exception,
boolean console) |
protected static java.lang.String |
printBacktraceMRI(RubyException exception,
boolean console) |
static TraceType |
traceTypeFor(java.lang.String style) |
public TraceType(TraceType.Gather gather, TraceType.Format format)
public BacktraceData getBacktrace(ThreadContext context, boolean nativeException)
context
- nativeException
- public BacktraceData getIntegratedBacktrace(ThreadContext context, java.lang.StackTraceElement[] javaTrace)
context
- javaTrace
- public java.lang.String printBacktrace(RubyException exception, boolean console)
public static void logBacktrace(RubyStackTraceElement[] trace)
public static void dumpException(RubyException exception)
public static void dumpBacktrace(RubyException exception)
public static void dumpCaller(RubyArray trace)
public static void dumpWarning(RubyStackTraceElement[] trace)
public static TraceType traceTypeFor(java.lang.String style)
protected static java.lang.String printBacktraceMRI(RubyException exception, boolean console)
protected static java.lang.String printBacktraceJRuby(RubyException exception, boolean console)
public static IRubyObject generateMRIBacktrace(Ruby runtime, RubyStackTraceElement[] trace)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.