Package mg.emberframework.core.exception
Class ModelValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
mg.emberframework.core.exception.ModelValidationException
- All Implemented Interfaces:
Serializable
Thrown when model validation fails.
This exception is raised when a model's fields do not pass the validation
rules defined by annotations such as @Numeric
or @Required
.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Sandratra NIAINA
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModelValidationException
(String message) Constructs an exception with a detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModelValidationException
Constructs an exception with a detail message.- Parameters:
message
- the detail message explaining the validation failure
-