Package org.seedstack.business.domain
Class AggregateExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.seedstack.business.domain.AggregateExistsException
-
- All Implemented Interfaces:
Serializable
public class AggregateExistsException extends RuntimeException
This exception is thrown when the existence of an aggregate is an error condition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregateExistsException()Creates the exception without message nor cause.AggregateExistsException(String message)Creates the exception with an error message.AggregateExistsException(String message, Throwable cause)Creates the exception with an error message and a cause.AggregateExistsException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Creates the exception with an error message, a cause and specify additional parameters.AggregateExistsException(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
-
AggregateExistsException
public AggregateExistsException()
Creates the exception without message nor cause.
-
AggregateExistsException
public AggregateExistsException(String message)
Creates the exception with an error message.- Parameters:
message- the message.
-
AggregateExistsException
public AggregateExistsException(String message, Throwable cause)
Creates the exception with an error message and a cause.- Parameters:
message- the message.cause- the cause.
-
AggregateExistsException
public AggregateExistsException(Throwable cause)
Creates the exception with a cause.- Parameters:
cause- the cause.
-
AggregateExistsException
public AggregateExistsException(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
-
-