Package cn.boboweike.carrot
Class CarrotException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- cn.boboweike.carrot.CarrotException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FieldNotFoundException,SevereCarrotException
public class CarrotException extends RuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringINVALID_LAMBDA_MESSAGEstatic StringSHOULD_NOT_HAPPEN_MESSAGE
-
Constructor Summary
Constructors Constructor Description CarrotException(String message)CarrotException(String message, boolean doNotRetry)CarrotException(String message, boolean doNotRetry, Throwable cause)CarrotException(String message, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CarrotExceptionconfigurationException(String message)static CarrotExceptionconfigurationException(String message, Throwable cause)static CarrotExceptioninvalidLambdaException(Exception exception)booleanisProblematicAndDoNotRetry()static CarrotExceptionproblematicConfigurationException(String message)static CarrotExceptionproblematicException(String message, Throwable cause)static CarrotExceptionshouldNotHappenException(String message)static CarrotExceptionshouldNotHappenException(Throwable cause)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
SHOULD_NOT_HAPPEN_MESSAGE
public static final String SHOULD_NOT_HAPPEN_MESSAGE
- See Also:
- Constant Field Values
-
INVALID_LAMBDA_MESSAGE
public static final String INVALID_LAMBDA_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isProblematicAndDoNotRetry
public boolean isProblematicAndDoNotRetry()
-
shouldNotHappenException
public static CarrotException shouldNotHappenException(String message)
-
invalidLambdaException
public static CarrotException invalidLambdaException(Exception exception)
-
shouldNotHappenException
public static CarrotException shouldNotHappenException(Throwable cause)
-
configurationException
public static CarrotException configurationException(String message)
-
problematicConfigurationException
public static CarrotException problematicConfigurationException(String message)
-
problematicException
public static CarrotException problematicException(String message, Throwable cause)
-
configurationException
public static CarrotException configurationException(String message, Throwable cause)
-
-