public interface ApplicationErrorCode extends HasDescription
An application error code.
| Modifier and Type | Method and Description |
|---|---|
int |
getArgs()
Returns the number of expected arguments.
|
ErrorCodeCategory |
getCategory()
Returns the category of the error code.
|
int |
getCode()
Returns the error code.
|
String |
getMessage()
Returns the error message.
|
default String |
getMessage(Object... args)
Creates a new error message with all arguments substituted.
|
getDescriptionErrorCodeCategory getCategory()
Returns the category of the error code.
int getCode()
Returns the error code.
int getArgs()
Returns the number of expected arguments.
String getMessage()
Returns the error message.
default String getMessage(Object... args)
Creates a new error message with all arguments substituted.
The length of arguments must be equal to the number of expected arguments of this error code.
If the number of expected arguments is 0, then args can be null or of length 0.
args - the arguments, must have same length as expected argumentsCopyright © 2016–2017. All rights reserved.