| Package | Description |
|---|---|
| com.thebeastshop.common | |
| com.thebeastshop.common.enums | |
| com.thebeastshop.common.exception | |
| com.thebeastshop.common.validation |
| Modifier and Type | Method and Description |
|---|---|
ServiceResp<T> |
ServiceResp.checkError(BaseErrorCode code,
RespCallback respCallback) |
static <T> ServiceResp<T> |
ServiceResp.newInstanceFail(BaseErrorCode errorCode) |
static <T> ServiceResp<T> |
ServiceResp.newInstanceFail(BaseErrorCode errorCode,
String msg) |
static <T> ServiceResp<T> |
ServiceResp.newInstanceFail(Exception e,
BaseErrorCode errorCode) |
| Modifier and Type | Class and Description |
|---|---|
class |
CommonErrorCode |
| Constructor and Description |
|---|
BaseServiceException(BaseErrorCode exceptionCode) |
BaseServiceException(BaseErrorCode exceptionCode,
String msg) |
BaseServiceException(BaseErrorCode exceptionCode,
String msg,
Throwable cause) |
BaseServiceException(BaseErrorCode exceptionCode,
Throwable cause) |
BusinessException(BaseErrorCode exceptionCode) |
BusinessException(BaseErrorCode exceptionCode,
String msg) |
BusinessException(BaseErrorCode exceptionCode,
String msg,
Throwable cause) |
ValidationException(BaseErrorCode exceptionCode) |
ValidationException(BaseErrorCode exceptionCode,
String msg) |
ValidationException(BaseErrorCode exceptionCode,
String msg,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Validation.assertEquals(Object excepted,
Object source,
BaseErrorCode errorCode)
断言:必须相等
|
static void |
Validation.assertEquals(Object excepted,
Object source,
BaseErrorCode errorCode,
String msg)
断言:必须相等
|
static void |
Validation.assertNotEmpty(CharSequence str,
BaseErrorCode errorCode,
String msg)
断言:字符串不为空
|
static void |
Validation.assertNotEmpty(Collection collection,
BaseErrorCode errorCode,
String msg)
断言:集合不为空
|
static void |
Validation.assertNotEmpty(Map map,
BaseErrorCode errorCode,
String msg)
断言:Map不为空
|
static void |
Validation.assertNotNull(Object object,
BaseErrorCode errorCode,
String msg)
断言:引用不为NULL
|
static void |
Validation.assertTrue(boolean condition,
BaseErrorCode exceptionCode)
断言:必须为真
|
static void |
Validation.assertTrue(boolean condition,
BaseErrorCode errorCode,
String msg)
断言:必须为真
|
static void |
Validation.rejectIf(Boolean condition,
BaseErrorCode exceptionCode)
条件为真时拒绝
|
static void |
Validation.rejectIf(Boolean condition,
BaseErrorCode exceptionCode,
String msg)
条件为真时拒绝
|
Copyright © 2018. All rights reserved.