public final class Error
extends java.lang.Object
Constructor and Description |
---|
Error(ErrorCode code,
java.lang.String message)
Constructs with the specified error.
|
Modifier and Type | Method and Description |
---|---|
ErrorCode |
getCode()
Returns the code of the error.
|
java.lang.String |
getMessage()
Returns the detail message of the error.
|
public Error(ErrorCode code, java.lang.String message)
code
- The code of the errormessage
- The detail message of the errorpublic ErrorCode getCode()
public java.lang.String getMessage()