java.lang.Object
java.lang.Throwable
java.lang.Exception
org.fuin.ddd4j.core.AbstractAggregateException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractVersionedAggregateException,AggregateDeletedException,AggregateNotFoundException,AggregateVersionConflictException
Base class for aggregate related exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAggregateException(@NotEmpty String message, @NotEmpty String type, @NotEmpty String id) Constructor with string data.AbstractAggregateException(@NotEmpty String message, @NotNull EntityType type, @NotNull AggregateRootId id) Constructor with strongly typed data. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbstractAggregateException
public AbstractAggregateException(@NotEmpty @NotEmpty String message, @NotNull @NotNull EntityType type, @NotNull @NotNull AggregateRootId id) Constructor with strongly typed data.- Parameters:
message- Error message.type- Type of the aggregate.id- Unique identifier of the aggregate.
-
AbstractAggregateException
public AbstractAggregateException(@NotEmpty @NotEmpty String message, @NotEmpty @NotEmpty String type, @NotEmpty @NotEmpty String id) Constructor with string data.- Parameters:
message- Error message.type- Type of the aggregate.id- Unique identifier of the aggregate.
-
-
Method Details
-
getType
Returns the type of the aggregate.- Returns:
- Type.
-
getId
Returns the unique identifier of the aggregate.- Returns:
- Stream with version conflict.
-