public class ErrorCode extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ErrorCode |
BUSINESS_ERROR
业务异常
|
int |
code |
static ErrorCode |
INTERNAL_ERROR
系统内部错误
|
String |
message |
static ErrorCode |
VALIDATION_ERROR
数据校验错误
|
public static final ErrorCode INTERNAL_ERROR
public static final ErrorCode VALIDATION_ERROR
public static final ErrorCode BUSINESS_ERROR
public final int code
public final String message
public ErrorCode(int code,
String message)
code - 异常编码message - 异常说明Copyright © 2016. All rights reserved.