Package cn.longky.common.model
Class BizErrorCode
java.lang.Object
cn.longky.common.model.BizErrorCode
- All Implemented Interfaces:
ErrorCode
业务错误码
- Since:
- 2024/4/13
- Author:
- yingzhan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertTrue(boolean condition) voidassertTrue(boolean condition, String message) voidassertTrue(boolean condition, String fmt, Object... args) toException(String message) toException(String fmt, Object... args) <T> Result<T>toResult()<T> Result<T><T> Result<T>toRuntimeException(String message) toRuntimeException(String fmt, Object... args) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.longky.common.model.ErrorCode
getCode, getMessage
-
Constructor Details
-
BizErrorCode
public BizErrorCode()
-
-
Method Details
-
toResult
-
toResult
-
toResult
-
toException
-
toException
-
toException
-
toException
-
toRuntimeException
-
toRuntimeException
-
toRuntimeException
-
assertTrue
- Throws:
KException
-
assertTrue
- Throws:
KException
-
assertTrue
- Throws:
KException
-