Interface ErrorInformation
- All Known Implementing Classes:
ActionErrorEnum
public interface ErrorInformation
ErrorInformation
- Author:
- 渔民小镇
- date:
- 2022-01-14
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidassertFalse(boolean v1) Asserts that the value must be false, otherwise throws an exceptiondefault voidassertFalse(boolean v1, String msg) Asserts that the value must be false, otherwise throws an exceptiondefault voidassertNonNull(Object value) Asserts that the assertion value cannot be null, otherwise throws an exceptiondefault voidassertNonNull(Object value, String msg) Asserts that the assertion value cannot be null, otherwise throws an exceptiondefault voidassertNullThrows(Object value) Asserts that the assertion value is null, otherwise throws an exceptiondefault voidassertNullThrows(Object value, String msg) Asserts that the assertion value is null, otherwise throws an exceptiondefault voidassertTrue(boolean v1) Asserts that the value must be true, otherwise throws an exceptiondefault voidassertTrue(boolean v1, String msg) Asserts that the value must be true, otherwise throws an exceptiondefault voidassertTrueThrows(boolean v1) Asserts to be true, otherwise throws an exceptiondefault voidassertTrueThrows(boolean v1, String msg) Asserts to be true, otherwise throws an exceptionintgetCode()
-
Method Details
-
getMessage
String getMessage() -
getCode
int getCode() -
assertTrueThrows
Asserts to be true, otherwise throws an exception- Parameters:
v1- The assertion value- Throws:
MessageException- e
-
assertTrueThrows
Asserts to be true, otherwise throws an exception- Parameters:
v1- The assertion valuemsg- Custom message- Throws:
MessageException- e
-
assertNonNull
Asserts that the assertion value cannot be null, otherwise throws an exception- Parameters:
value- The assertion valuemsg- Custom message- Throws:
MessageException- e
-
assertNonNull
Asserts that the assertion value cannot be null, otherwise throws an exception- Parameters:
value- The assertion value- Throws:
MessageException- e
-
assertNullThrows
Asserts that the assertion value is null, otherwise throws an exception- Parameters:
value- The assertion value- Throws:
MessageException- e
-
assertNullThrows
Asserts that the assertion value is null, otherwise throws an exception- Parameters:
value- The assertion valuemsg- Custom message- Throws:
MessageException- e
-
assertTrue
Asserts that the value must be true, otherwise throws an exception- Parameters:
v1- The assertion value- Throws:
MessageException- e
-
assertFalse
Asserts that the value must be false, otherwise throws an exception- Parameters:
v1- The assertion value- Throws:
MessageException- e
-
assertFalse
Asserts that the value must be false, otherwise throws an exception- Parameters:
v1- The assertion valuemsg- Custom message- Throws:
MessageException- e
-
assertTrue
Asserts that the value must be true, otherwise throws an exception- Parameters:
v1- The assertion valuemsg- Custom message- Throws:
MessageException- e
-