|
|
|
@ -19,9 +19,6 @@ package cn.hippo4j.common.web.exception;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Error code enum.
|
|
|
|
|
*
|
|
|
|
|
* @author chen.ma
|
|
|
|
|
* @date 2021/3/19 16:07
|
|
|
|
|
*/
|
|
|
|
|
public enum ErrorCodeEnum implements ErrorCode {
|
|
|
|
|
|
|
|
|
@ -29,7 +26,6 @@ public enum ErrorCodeEnum implements ErrorCode {
|
|
|
|
|
* UNKNOWN_ERROR
|
|
|
|
|
*/
|
|
|
|
|
UNKNOWN_ERROR {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return "1";
|
|
|
|
@ -45,7 +41,6 @@ public enum ErrorCodeEnum implements ErrorCode {
|
|
|
|
|
* VALIDATION_ERROR
|
|
|
|
|
*/
|
|
|
|
|
VALIDATION_ERROR {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return "2";
|
|
|
|
@ -61,7 +56,6 @@ public enum ErrorCodeEnum implements ErrorCode {
|
|
|
|
|
* SERVICE_ERROR
|
|
|
|
|
*/
|
|
|
|
|
SERVICE_ERROR {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return "3";
|
|
|
|
@ -77,7 +71,6 @@ public enum ErrorCodeEnum implements ErrorCode {
|
|
|
|
|
* NOT_FOUND
|
|
|
|
|
*/
|
|
|
|
|
NOT_FOUND {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return "404";
|
|
|
|
@ -93,7 +86,6 @@ public enum ErrorCodeEnum implements ErrorCode {
|
|
|
|
|
* LOGIN_TIMEOUT
|
|
|
|
|
*/
|
|
|
|
|
LOGIN_TIMEOUT {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return "A000004";
|
|
|
|
|