public final class FrameCache extends Object
Modifier and Type | Method and Description |
---|---|
static void |
add(Throwable throwable,
Frame[] frames)
Store the per-frame local variable information for the last exception thrown on this thread.
|
static void |
addAppPackage(String newAppPackage)
Add an "in app" package prefix to the set of packages for which exception
local variables will be cached.
|
static Frame[] |
get(Throwable throwable)
Retrieve the per-frame local variable information for the last exception thrown on this thread.
|
static boolean |
shouldCacheThrowable(Throwable throwable,
int numFrames)
Check whether the provided
Throwable should be cached or not. |
public static void add(Throwable throwable, Frame[] frames)
public static Frame[] get(Throwable throwable)
public static boolean shouldCacheThrowable(Throwable throwable, int numFrames)
Throwable
should be cached or not. Called by
the native agent code so that the Java side (this code) can check the existing
cache and user configuration, such as which packages are "in app".throwable
- Throwable to be checkednumFrames
- Number of frames in the Throwable's stacktracepublic static void addAppPackage(String newAppPackage)
shouldCacheThrowable(Throwable, int)
.newAppPackage
- package prefix to add to the setCopyright © 2012–2019. All rights reserved.