| Package | Description |
|---|---|
| io.mybatis.common.core | |
| io.mybatis.common.exception | |
| io.mybatis.common.util |
| Modifier and Type | Field and Description |
|---|---|
static Code |
Code.DELETE_FAILURE |
static Code |
Code.FAILURE |
static Code |
Code.SAVE_FAILURE |
static Code |
Code.SUCCESS |
static Code |
Code.UNKNOWN |
static Code |
Code.UPDATE_FAILURE |
| Modifier and Type | Method and Description |
|---|---|
static Response |
Response.error(Code code) |
| Modifier and Type | Field and Description |
|---|---|
static Code |
AssertException.ASSERT_FAILURE |
| Modifier and Type | Method and Description |
|---|---|
Code |
ServiceException.getCode() |
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceException.setCode(Code code) |
| Constructor and Description |
|---|
AssertException(Code code) |
ServiceException(Code code) |
ServiceException(Code code,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends CharSequence> |
Assert.isBlank(T text,
Code code)
检查给定字符串是否为空白(null、空串或只包含空白符)
|
static <T> void |
Assert.isEmpty(Collection<T> collection,
Code code)
检查给定集合是否为空
|
static <T> void |
Assert.isEmpty(T[] array,
Code code)
检查给定数组是否为空
|
static <T extends CharSequence> |
Assert.isEmpty(T text,
Code code)
检查给定字符串是否为空
|
static void |
Assert.isFalse(boolean expression,
Code code)
断言是否为假
|
static void |
Assert.isNull(Object object,
Code code)
断言对象是否为
null |
static void |
Assert.isTrue(boolean expression,
Code code)
断言是否为真
|
static <T extends CharSequence> |
Assert.notBlank(T text,
Code code)
检查给定字符串是否为空白(null、空串或只包含空白符)
|
static <T> void |
Assert.notEmpty(Collection<T> collection,
Code code)
检查给定集合是否非空
|
static <T> void |
Assert.notEmpty(T[] array,
Code code)
检查给定数组是否非空
|
static <T extends CharSequence> |
Assert.notEmpty(T text,
Code code)
检查给定字符串是否为空
|
static void |
Assert.notNull(Object object,
Code code)
断言对象是否补为
null |
Copyright © 2023. All rights reserved.