类 ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.hamm.airpower.exception.ServiceException
- 所有已实现的接口:
IException,Serializable
系统异常包装类
- 作者:
- Hamm.cn
- 另请参阅:
-
构造器概要
构造器构造器说明ServiceException(int code, String message) 直接抛出一个异常ServiceException(@NotNull ServiceError errorCode) 直接抛出一个异常ServiceException(@NotNull ServiceError errorCode, String message) 直接抛出一个异常ServiceException(@NotNull Exception exception) 直接抛出一个异常ServiceException(String message) 抛出一个自定义错误信息的默认异常 -
方法概要
从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.hamm.airpower.interfaces.IException
getCode, getMessage, show, show, show, when, when, when, whenEmpty, whenEmpty, whenEquals, whenEquals, whenEquals, whenEquals, whenEqualsIgnoreCase, whenEqualsIgnoreCase, whenNotEquals, whenNotEquals, whenNotEquals, whenNotEquals, whenNotEqualsIgnoreCase, whenNotEqualsIgnoreCase, whenNotNull, whenNotNull, whenNull, whenNull
-
构造器详细资料
-
ServiceException
抛出一个自定义错误信息的默认异常
- 参数:
message- 错误信息
-
ServiceException
直接抛出一个异常
- 参数:
errorCode- 异常
-
ServiceException
直接抛出一个异常
- 参数:
errorCode- 异常message- 错误信息
-
ServiceException
直接抛出一个异常
- 参数:
code- 错误代码message- 错误信息
-
ServiceException
直接抛出一个异常
- 参数:
exception- 异常
-