public enum CommonErrorCode extends java.lang.Enum<CommonErrorCode> implements ErrorCode
| Enum Constant and Description |
|---|
CONNECTION_ERROR |
HTTP_RESPONSE_ERROR |
UNEXPECTED_ERROR |
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
findByStatusCode(java.lang.String statusCode) |
java.lang.Integer |
getDescriptionResId() |
java.lang.String |
getStatusCode() |
java.lang.Integer |
getTitleResId() |
ErrorCodeException |
newErrorCodeException() |
ErrorCodeException |
newErrorCodeException(java.lang.Object... errorCodeParameters) |
ErrorCodeException |
newErrorCodeException(java.lang.String message) |
ErrorCodeException |
newErrorCodeException(java.lang.Throwable throwable) |
static CommonErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommonErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonErrorCode CONNECTION_ERROR
public static final CommonErrorCode UNEXPECTED_ERROR
public static final CommonErrorCode HTTP_RESPONSE_ERROR
public static CommonErrorCode[] values()
for (CommonErrorCode c : CommonErrorCode.values()) System.out.println(c);
public static CommonErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ErrorCode findByStatusCode(java.lang.String statusCode)
public java.lang.String getStatusCode()
getStatusCode in interface ErrorCodeErrorCode.getStatusCode()public java.lang.Integer getTitleResId()
getTitleResId in interface ErrorCodeErrorCode.getTitleResId()public java.lang.Integer getDescriptionResId()
getDescriptionResId in interface ErrorCodeErrorCode.getDescriptionResId()public ErrorCodeException newErrorCodeException(java.lang.Object... errorCodeParameters)
newErrorCodeException in interface ErrorCodeerrorCodeParameters - The parameters for this ErrorCode's message.ErrorCodeException with this ErrorCodeErrorCode.newErrorCodeException(java.lang.Object[])public ErrorCodeException newErrorCodeException()
newErrorCodeException in interface ErrorCodeErrorCodeExceptionErrorCode.newErrorCodeException()public ErrorCodeException newErrorCodeException(java.lang.Throwable throwable)
newErrorCodeException in interface ErrorCodeErrorCode.newErrorCodeException(java.lang.Throwable)public ErrorCodeException newErrorCodeException(java.lang.String message)
newErrorCodeException in interface ErrorCodemessage - The messageErrorCodeExceptionErrorCode.newErrorCodeException(java.lang.String)