| Modifier | Constructor and Description |
|---|---|
protected |
CrashImplCore() |
protected |
CrashImplCore(java.lang.Long id) |
| Modifier and Type | Method and Description |
|---|---|
protected CrashImplCore |
add(java.lang.String key,
java.lang.Object value) |
CrashImplCore |
addException(java.lang.Exception e)
Set
Exception object to be sent to the server. |
CrashImplCore |
addThrowable(java.lang.Throwable throwable)
Set
Throwable object to be sent to the server. |
CrashImplCore |
addTraces(java.lang.Thread main,
java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> traces)
Record stack traces of all threads.
|
java.lang.String |
getJSON() |
java.util.List<java.lang.String> |
getLogs() |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.String> |
getSegments() |
static java.lang.String |
getStoragePrefix() |
java.lang.Throwable |
getThrowable() |
java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> |
getTraces() |
boolean |
isFatal() |
CrashImplCore |
putMetricsCore(CtxCore ctx,
java.lang.Long runningTime) |
boolean |
restore(byte[] data) |
CrashImplCore |
setFatal(boolean fatal)
Set whether crash was fatal (uncaught
Exception or very bad caught Exception
which prevents app from functioning correctly. |
CrashImplCore |
setLogs(java.lang.String[] logs)
Add logs to this crash.
|
CrashImplCore |
setName(java.lang.String name)
Set crash name, that is its title.
|
CrashImplCore |
setSegments(java.util.Map<java.lang.String,java.lang.String> segments)
Add some segmentation to this crash.
|
java.lang.Long |
storageId() |
java.lang.String |
storagePrefix() |
byte[] |
store() |
protected CrashImplCore()
protected CrashImplCore(java.lang.Long id)
public CrashImplCore addThrowable(java.lang.Throwable throwable)
CrashThrowable object to be sent to the server.
Does the same job as Crash.addException(Exception).addThrowable in interface Crashthrowable - Throwable to sendpublic CrashImplCore addException(java.lang.Exception e)
CrashException object to be sent to the server.
Does the same job as Crash.addThrowable(Throwable).addException in interface Crashe - Exception to sendpublic CrashImplCore addTraces(java.lang.Thread main, java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> traces)
Crashpublic CrashImplCore setFatal(boolean fatal)
CrashException or very bad caught Exception
which prevents app from functioning correctly.public CrashImplCore setName(java.lang.String name)
Crashpublic CrashImplCore setSegments(java.util.Map<java.lang.String,java.lang.String> segments)
CrashsetSegments in interface Crashsegments - crash segmentspublic CrashImplCore setLogs(java.lang.String[] logs)
Crashpublic java.lang.Throwable getThrowable()
getThrowable in interface CrashThrowable of this crashpublic java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> getTraces()
public boolean isFatal()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.String> getSegments()
getSegments in interface Crashnull otherwisepublic java.util.List<java.lang.String> getLogs()
protected CrashImplCore add(java.lang.String key, java.lang.Object value)
public java.lang.String storagePrefix()
storagePrefix in interface Storablepublic static java.lang.String getStoragePrefix()
public CrashImplCore putMetricsCore(CtxCore ctx, java.lang.Long runningTime)
public java.lang.String getJSON()