| 接口 | 说明 |
|---|---|
| ErrorCode |
Represents API error code.
|
| ExceptionToErrorCode |
| 类 | 说明 |
|---|---|
| ApiExceptionHandler |
Exception handler that catches all exceptions thrown by the REST layer and
convert them to the appropriate ErrorResponses with a suitable
HTTP status code.
|
| ErrorCodes |
Acts as a factory for ExceptionToErrorCode implementations.
|
| ErrorResponse |
An immutable data structure representing HTTP error response bodies.
|
| 枚举 | 说明 |
|---|---|
| ErrorCode.CommonApiErrorCode |
Every Api should have errorcode self
|
| ErrorCode.UnknownErrorCode | |
| ServiceException.ServiceErrorCode |
| 异常错误 | 说明 |
|---|---|
| ServiceException |
Service抛出的异常
|
Copyright © 2020. All rights reserved.