public class ErrorMessageCode extends ErrorMessage
EIGHT_BYTES, FOUR_BYTES, INFINITE_LENGHT_TEXT_STRING_NOT_SUPPORTED, INFINITE_LENGTH_BYTE_STRING_NOT_SUPPORTED, INPUT_STREAM_CANNOT_BE_NULL, INVALID_ARRAY_LENGHT, INVALID_MAJOR_TYPE, INVALID_MAP_LENGHT, NO_PAYLOAD, NOT_WELL_FORMED_CBOR_INTEGER, ONE_BYTE, OUTPUT_STREAM_CANNOT_BE_NULL, PARAMETERS_CANNOT_BE_NULL, PROP_ERROR_MESSAGE_IMPL, STRING_LENGTH_TOO_LONG, TAG_CANNOT_BE_NEGATIVE, TWO_BYTES, UNEXPECTED_BOOLEAN_VALUE, UNEXPECTED_PAYLOAD_OR_LENGTH, UNEXPECTED_SUBTYPE, UNEXPECTED_TYPE, UNEXPECTED_TYPE_TWO_TYPES, UNKNOWN
Constructor and Description |
---|
ErrorMessageCode() |
Modifier and Type | Method and Description |
---|---|
String |
messageAt(int errorCode,
Object... args)
Generates
String for a specified error code. |
getDefault
public String messageAt(int errorCode, Object... args)
ErrorMessage
String
for a specified error code.messageAt
in class ErrorMessage
errorCode
- the error code corresponding to the message.args
- the optional list of arguments to construct the message String
.String
.