public class ErrorMessage extends Object
Constructor and Description |
---|
ErrorMessage()
Construct an error message with no error code or description.
|
ErrorMessage(String message)
Construct an error message with the provided description.
|
ErrorMessage(String error,
String message)
Construct an error message with the provided error code and description.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getError()
Get the error code.
|
String |
getMessage()
Get the description.
|
int |
hashCode() |
String |
toString() |
public ErrorMessage()
public ErrorMessage(String message)
message
- a user-facing error message explaining why the request failedpublic ErrorMessage(String error, String message)
error
- a single word in camel case that uniquely identifies the error conditionmessage
- a user-facing error message explaining why the request failed