Package org.dizitart.no2.exceptions
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.dizitart.no2.exceptions.NitriteException
-
- org.dizitart.no2.exceptions.ValidationException
-
- All Implemented Interfaces:
Serializable
public class ValidationException extends NitriteException
Exception thrown when a validation error occurs.- Since:
- 1.0
- Author:
- Anindya Chatterjee.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(String errorMessage)
Instantiates a newValidationException
.ValidationException(String errorMessage, Throwable cause)
Instantiates a newValidationException
.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ValidationException
public ValidationException(String errorMessage)
Instantiates a newValidationException
.- Parameters:
errorMessage
- the error message
-
ValidationException
public ValidationException(String errorMessage, Throwable cause)
Instantiates a newValidationException
.- Parameters:
errorMessage
- the error messagecause
- the cause
-
-