Package org.seedstack.business.domain
Class AggregateNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.seedstack.business.domain.AggregateNotFoundException
-
- All Implemented Interfaces:
Serializable
public class AggregateNotFoundException extends RuntimeException
This exception is thrown when the absence of an aggregate is an error condition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregateNotFoundException()Creates the exception without message nor cause.AggregateNotFoundException(String message)Creates the exception with an error message.AggregateNotFoundException(String message, Throwable cause)Creates the exception with an error message and a cause.AggregateNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Creates the exception with an error message, a cause and specify additional parameters.AggregateNotFoundException(Throwable cause)Creates the exception with a cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AggregateNotFoundException
public AggregateNotFoundException()
Creates the exception without message nor cause.
-
AggregateNotFoundException
public AggregateNotFoundException(String message)
Creates the exception with an error message.- Parameters:
message- the message.
-
AggregateNotFoundException
public AggregateNotFoundException(String message, Throwable cause)
Creates the exception with an error message and a cause.- Parameters:
message- the message.cause- the cause.
-
AggregateNotFoundException
public AggregateNotFoundException(Throwable cause)
Creates the exception with a cause.- Parameters:
cause- the cause.
-
AggregateNotFoundException
public AggregateNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Creates the exception with an error message, a cause and specify additional parameters.- Parameters:
message- the message.cause- the cause.enableSuppression- whether or not suppression is enabled or disabledwritableStackTrace- whether or not the stack trace should be writable
-
-