Module utility.domain.exception
Class DomainValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.co.jasonmarston.kiunzi.utility.domain.exception.DomainException
uk.co.jasonmarston.kiunzi.utility.domain.exception.DomainValidationException
- All Implemented Interfaces:
Serializable
Exception thrown when input data violates domain-layer validation rules.
DomainValidationException is intended for explicit validation failures
identified by domain logic before or during construction.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDomainValidationException(String message) Constructs aDomainValidationExceptionwith the given detail message.DomainValidationException(String message, Throwable cause) Constructs aDomainValidationExceptionwith the given detail message and 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
-
DomainValidationException
Constructs aDomainValidationExceptionwith the given detail message.- Parameters:
message- the detail message describing the validation failure
-
DomainValidationException
Constructs aDomainValidationExceptionwith the given detail message and cause.- Parameters:
message- the detail message describing the validation failurecause- the underlying cause
-