- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.refcodes.exception.AbstractRuntimeException
-
- org.refcodes.exception.IntegrityException
-
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
public class IntegrityException extends AbstractRuntimeException
An integrity exception is thrown whenever the integrity of data may be violated.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
-
-
Constructor Summary
Constructors Constructor Description IntegrityException(String aMessage)
Instantiates a new bug exception.IntegrityException(String aMessage, String aErrorCode)
Instantiates a new bug exception.IntegrityException(String message, Throwable cause)
Instantiates a new bug exception.IntegrityException(String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new bug exception.IntegrityException(Throwable cause)
Instantiates a new bug exception.IntegrityException(Throwable aCause, String aErrorCode)
Instantiates a new bug exception.
-
Method Summary
-
Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IntegrityException
public IntegrityException(String aMessage)
Instantiates a new bug exception.- Parameters:
aMessage
- the message
-
IntegrityException
public IntegrityException(String message, Throwable cause)
Instantiates a new bug exception.- Parameters:
message
- the messagecause
- the cause
-
IntegrityException
public IntegrityException(Throwable cause)
Instantiates a new bug exception.- Parameters:
cause
- the cause
-
IntegrityException
public IntegrityException(String aMessage, String aErrorCode)
Instantiates a new bug exception.- Parameters:
aMessage
- the messageaErrorCode
- the error code
-
IntegrityException
public IntegrityException(String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new bug exception.- Parameters:
aMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
-