public class ServiceException extends CustomException
逻辑异常
主要使用到的场景有: 1 在处理业务逻辑时出现异常情况 2 一般在逻辑层使用较多errorCode
Constructor and Description |
---|
ServiceException() |
ServiceException(int errorCode,
String message) |
ServiceException(String message) |
ServiceException(String message,
Throwable cause) |
ServiceException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
ServiceException(Throwable cause) |
getErrorCode, setErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2021. All rights reserved.