class ThrowableProxyHelper
extends java.lang.Object
ThrowableProxyHelper
provides utilities required to initialize a new ThrowableProxy
instance.Modifier and Type | Class and Description |
---|---|
(package private) static class |
ThrowableProxyHelper.CacheEntry
Cached StackTracePackageElement and ClassLoader.
|
Modifier and Type | Field and Description |
---|---|
(package private) static ThrowableProxy[] |
EMPTY_THROWABLE_PROXY_ARRAY |
Modifier | Constructor and Description |
---|---|
private |
ThrowableProxyHelper() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Class<?> |
loadClass(java.lang.ClassLoader lastLoader,
java.lang.String className)
Loads classes not located via Reflection.getCallerClass.
|
private static java.lang.Class<?> |
loadClass(java.lang.String className) |
private static ThrowableProxyHelper.CacheEntry |
toCacheEntry(java.lang.Class<?> callerClass,
boolean exact)
Construct the CacheEntry from the Class's information.
|
(package private) static ExtendedStackTraceElement[] |
toExtendedStackTrace(ThrowableProxy src,
java.util.Stack<java.lang.Class<?>> stack,
java.util.Map<java.lang.String,ThrowableProxyHelper.CacheEntry> map,
java.lang.StackTraceElement[] rootTrace,
java.lang.StackTraceElement[] stackTrace)
Resolve all the stack entries in this stack trace that are not common with the parent.
|
(package private) static ThrowableProxy[] |
toSuppressedProxies(java.lang.Throwable thrown,
java.util.Set<java.lang.Throwable> suppressedVisited) |
static final ThrowableProxy[] EMPTY_THROWABLE_PROXY_ARRAY
static ExtendedStackTraceElement[] toExtendedStackTrace(ThrowableProxy src, java.util.Stack<java.lang.Class<?>> stack, java.util.Map<java.lang.String,ThrowableProxyHelper.CacheEntry> map, java.lang.StackTraceElement[] rootTrace, java.lang.StackTraceElement[] stackTrace)
src
- Instance for which to build an extended stack trace.stack
- The callers Class stack.map
- The cache of CacheEntry objects.rootTrace
- The first stack trace resolve or null.stackTrace
- The stack trace being resolved.static ThrowableProxy[] toSuppressedProxies(java.lang.Throwable thrown, java.util.Set<java.lang.Throwable> suppressedVisited)
private static ThrowableProxyHelper.CacheEntry toCacheEntry(java.lang.Class<?> callerClass, boolean exact)
callerClass
- The Class.exact
- True if the class was obtained via Reflection.getCallerClass.private static java.lang.Class<?> loadClass(java.lang.ClassLoader lastLoader, java.lang.String className)
lastLoader
- The ClassLoader that loaded the Class that called this Class.className
- The name of the Class.private static java.lang.Class<?> loadClass(java.lang.String className)