Package dev.vality.error.mapping
Class ErrorMappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.vality.error.mapping.ErrorMappingException
- All Implemented Interfaces:
Serializable
public class ErrorMappingException extends RuntimeException
Handy class for wrapping runtime
Exceptions with a root cause.-
Constructor Summary
Constructors Constructor Description ErrorMappingException()Constructs a newErrorMappingExceptionwithnullas its detail message.ErrorMappingException(String message)Construct a newErrorMappingExceptionwith the specified detail message.ErrorMappingException(String message, Throwable cause)Construct a newErrorMappingExceptionwith the specified detail message and root cause.ErrorMappingException(Throwable cause)Construct a newErrorMappingExceptionwith the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ErrorMappingException
public ErrorMappingException()Constructs a newErrorMappingExceptionwithnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable). -
ErrorMappingException
Construct a newErrorMappingExceptionwith the specified detail message.- Parameters:
message- the detail message
-
ErrorMappingException
Construct a newErrorMappingExceptionwith the cause.- Parameters:
cause- the root cause
-
ErrorMappingException
Construct a newErrorMappingExceptionwith the specified detail message and root cause.- Parameters:
message- the detail messagecause- the root cause
-