public interface Crash
| Modifier and Type | Method and Description |
|---|---|
Crash |
addException(java.lang.Exception e)
Set
Exception object to be sent to the server. |
Crash |
addThrowable(java.lang.Throwable t)
Set
Throwable object to be sent to the server. |
Crash |
addTraces(java.lang.Thread main,
java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> traces)
Record stack traces of all threads.
|
java.util.List<java.lang.String> |
getLogs() |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.String> |
getSegments() |
java.lang.Throwable |
getThrowable() |
java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> |
getTraces() |
boolean |
isFatal() |
Crash |
setFatal(boolean fatal)
Set whether crash was fatal (uncaught
Exception or very bad caught Exception
which prevents app from functioning correctly. |
Crash |
setLogs(java.lang.String[] logs)
Add logs to this crash.
|
Crash |
setName(java.lang.String name)
Set crash name, that is its title.
|
Crash |
setSegments(java.util.Map<java.lang.String,java.lang.String> segments)
Add some segmentation to this crash.
|
Crash addThrowable(java.lang.Throwable t)
Throwable object to be sent to the server.
Does the same job as addException(Exception).t - Throwable to sendCrash addException(java.lang.Exception e)
Exception object to be sent to the server.
Does the same job as addThrowable(Throwable).e - Exception to sendCrash addTraces(java.lang.Thread main, java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> traces)
main - Thread to record firsttraces - all stack traces to sendCrash setFatal(boolean fatal)
Exception or very bad caught Exception
which prevents app from functioning correctly.fatal - true if fatal, false otherwiseCrash setName(java.lang.String name)
name - title stringCrash setSegments(java.util.Map<java.lang.String,java.lang.String> segments)
segments - crash segmentsCrash setLogs(java.lang.String[] logs)
logs - crash logsjava.lang.Throwable getThrowable()
Throwable of this crashjava.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> getTraces()
boolean isFatal()
java.lang.String getName()
null otherwisejava.util.Map<java.lang.String,java.lang.String> getSegments()
null otherwisejava.util.List<java.lang.String> getLogs()
null otherwise