-
- All Implemented Interfaces:
-
com.bugsnag.android.JsonStream.Streamable
public class Error implements JsonStream.Streamable
An Error represents information extracted from a Throwable.
-
-
Method Summary
Modifier and Type Method Description voidsetErrorClass(@NonNull() String errorClass)Sets the fully-qualified class name of the Throwable StringgetErrorClass()Gets the fully-qualified class name of the Throwable voidsetErrorMessage(@Nullable() String errorMessage)The message string from the Throwable StringgetErrorMessage()The message string from the Throwable voidsetType(@NonNull() ErrorType type)Sets the type of error based on the originating platform (intended for internal use only) ErrorTypegetType()Sets the type of error based on the originating platform (intended for internal use only) List<Stackframe>getStacktrace()Gets a representation of the stacktrace StackframeaddStackframe(@Nullable() String method, @Nullable() String file, long lineNumber)Add a new stackframe to the end of this Error returning the new Stackframe data object. voidtoStream(@NonNull() JsonStream stream)-
-
Method Detail
-
setErrorClass
void setErrorClass(@NonNull() String errorClass)
Sets the fully-qualified class name of the Throwable
-
getErrorClass
@NonNull() String getErrorClass()
Gets the fully-qualified class name of the Throwable
-
setErrorMessage
void setErrorMessage(@Nullable() String errorMessage)
The message string from the Throwable
-
getErrorMessage
@Nullable() String getErrorMessage()
The message string from the Throwable
-
setType
void setType(@NonNull() ErrorType type)
Sets the type of error based on the originating platform (intended for internal use only)
-
getType
@NonNull() ErrorType getType()
Sets the type of error based on the originating platform (intended for internal use only)
-
getStacktrace
@NonNull() List<Stackframe> getStacktrace()
Gets a representation of the stacktrace
-
addStackframe
@NonNull() Stackframe addStackframe(@Nullable() String method, @Nullable() String file, long lineNumber)
Add a new stackframe to the end of this Error returning the new Stackframe data object.
-
toStream
void toStream(@NonNull() JsonStream stream)
-
-
-
-