public final class ThrowableCache
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
add(java.lang.Throwable throwable,
CacheFrame[] frames)
Add a list of frames with extra information to the cache associated to this particular
throwable.
|
static void |
addAppPackage(java.lang.String newAppPackage)
Add a string representing a package prefix to check against class names in stack traces to
determine whether to cache throwables or not.
|
static CacheFrame[] |
get(java.lang.Throwable throwable)
Get the cached frames associated with the given throwable.
|
static boolean |
shouldCacheThrowable(java.lang.Throwable throwable,
int numFrames)
Whether or not we should cache this throwable which has a particular number of frames in
its stacktrace.
|
public static void add(java.lang.Throwable throwable,
CacheFrame[] frames)
throwable - a throwable to use as a cache key.frames - frames associated with this throwable.public static CacheFrame[] get(java.lang.Throwable throwable)
throwable - a throwable to use as a cache key.public static boolean shouldCacheThrowable(java.lang.Throwable throwable,
int numFrames)
throwable - the throwable we might want to cache.numFrames - the number of frames in the stacktrace.public static void addAppPackage(java.lang.String newAppPackage)
newAppPackage - a string to add to the set of packages in your app.