Module utility.domain.exception
Class NotFoundException
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.NotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when a requested resource cannot be found in the system.
Raised by output ports and adapters when a lookup operation returns no result, for example when an aggregate identified by a given public identifier does not exist in the data store.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotFoundException(String message) Constructs aNotFoundExceptionwith the given detail message.NotFoundException(String message, Throwable cause) Constructs aNotFoundExceptionwith 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
-
NotFoundException
Constructs aNotFoundExceptionwith the given detail message.- Parameters:
message- the detail message describing which resource was not found
-
NotFoundException
Constructs aNotFoundExceptionwith the given detail message and cause.- Parameters:
message- the detail message describing which resource was not foundcause- the underlying cause
-