Package cn.sliew.milky.common.exception
Class BizException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- cn.sliew.milky.common.exception.BizException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TokenParseException,ValueParseException
public class BizException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BizException()BizException(long code, boolean retryable, String message)BizException(BizExceptionEnum codeEnum)BizException(String message)BizException(String message, Throwable cause)BizException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCode()booleanisRetryable()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BizException
public BizException()
-
BizException
public BizException(String message)
-
BizException
public BizException(Throwable cause)
-
BizException
public BizException(long code, boolean retryable, String message)
-
BizException
public BizException(BizExceptionEnum codeEnum)
-
-
Method Detail
-
getCode
public Long getCode()
-
isRetryable
public boolean isRetryable()
-
-