Skip to content
Reference > Classes

Error

Definition

Error var = .... ;

Extends

Extended By

None

Method Summary

Owner Name Return Type Description
Error constructor(msg, cause) Object Constructs a new error with the specified detail message and cause.
Error constructor(msg) Object Constructs a new error with the specified detail message.
Error getCause() Error Returns the cause of this error or null if the cause is nonexistent or unknown.
Object getClassName() String Returns the string name of this object's class type.
Error getMessage() String Returns the detail message string of this error.
Error getStackTrace() Error Returns the raw java stack trace of this error.
Object toJson() String Returns a json representation of this object.

Method Definitions


constructor(msg,cause)

Error error = new Error(String msg, Error cause)

Description

Constructs a new error with the specified detail message and cause.

Parameter Definition

Name Type Description
msg String  error message
cause Error 

constructor(msg)

Error error = new Error(String msg)

Description

Constructs a new error with the specified detail message.

Parameter Definition

Name Type Description
msg String  error message

getCause()

Error Error::getCause()

Description

Returns the cause of this error or null if the cause is nonexistent or unknown.


getMessage()

String Error::getMessage()

Description

Returns the detail message string of this error.


getStackTrace()

Error Error::getStackTrace()

Description

Returns the raw java stack trace of this error.