Error¶
Definition¶
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()¶
Description¶
Returns the cause of this error or null if the cause is nonexistent or unknown.
getMessage()¶
Description¶
Returns the detail message string of this error.
getStackTrace()¶
Description¶
Returns the raw java stack trace of this error.