public class TraceType extends 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 |
dumpCaller(RubyStackTraceElement[] 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.
|
TraceType.Format |
getFormat() |
TraceType.Gather |
getGather() |
BacktraceData |
getIntegratedBacktrace(ThreadContext context,
StackTraceElement[] javaTrace)
Get an integrated Ruby/Java backtrace if the current Gather type is NORMAL
|
static void |
logBacktrace(RubyStackTraceElement[] trace) |
String |
printBacktrace(RubyException exception,
boolean console) |
protected static String |
printBacktraceJRuby(RubyException exception,
boolean console) |
protected static String |
printBacktraceMRI(RubyException exception,
boolean console) |
static TraceType |
traceTypeFor(String style) |
public TraceType(TraceType.Gather gather, TraceType.Format format)
public TraceType.Gather getGather()
public TraceType.Format getFormat()
public BacktraceData getBacktrace(ThreadContext context, boolean nativeException)
context
- nativeException
- public BacktraceData getIntegratedBacktrace(ThreadContext context, StackTraceElement[] javaTrace)
context
- javaTrace
- public 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 dumpCaller(RubyStackTraceElement[] trace)
public static void dumpWarning(RubyStackTraceElement[] trace)
protected static String printBacktraceMRI(RubyException exception, boolean console)
protected static String printBacktraceJRuby(RubyException exception, boolean console)
public static IRubyObject generateMRIBacktrace(Ruby runtime, RubyStackTraceElement[] trace)
Copyright © 2001–2016 JRuby. All rights reserved.