Error

open class Error : JsonStream.Streamable

An Error represents information extracted from a Throwable.

Functions

getErrorClass
Link copied to clipboard
open fun getErrorClass(): String
Gets the fully-qualified class name of the Throwable
getErrorMessage
Link copied to clipboard
open fun getErrorMessage(): String
The message string from the Throwable
getStacktrace
Link copied to clipboard
open fun getStacktrace(): List<Stackframe>
Gets a representation of the stacktrace
getType
Link copied to clipboard
open fun getType(): ErrorType
Sets the type of error based on the originating platform (intended for internal use only)
setErrorClass
Link copied to clipboard
open fun setErrorClass(@NonNull() errorClass: String)
Sets the fully-qualified class name of the Throwable
setErrorMessage
Link copied to clipboard
open fun setErrorMessage(@Nullable() errorMessage: String)
The message string from the Throwable
setType
Link copied to clipboard
open fun setType(@NonNull() type: ErrorType)
Sets the type of error based on the originating platform (intended for internal use only)
toStream
Link copied to clipboard
open fun toStream(@NonNull() stream: JsonStream)