org.axonframework.eventstore
Class EventStreamNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.eventstore.EventStoreException
org.axonframework.eventstore.EventStreamNotFoundException
- All Implemented Interfaces:
- Serializable
public class EventStreamNotFoundException
- extends EventStoreException
Exception indicating that the event store could not find an event stream for a given aggregate type and identifier.
This typically means that there is no aggregate with the given identifier.
- Since:
- 0.5
- Author:
- Allard Buijze
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
EventStreamNotFoundException
public EventStreamNotFoundException(String message)
- Initialize the exception with the given
message
.
- Parameters:
message
- a detailed message of the cause of the exception
EventStreamNotFoundException
public EventStreamNotFoundException(String type,
Object identifier)
- Initialize the exception with a default message for a given aggregate
identifier
of given
type
.
- Parameters:
type
- The type identifier of the aggregate that wasn't foundidentifier
- The identifier of the aggregate that wasn't found
EventStreamNotFoundException
public EventStreamNotFoundException(String message,
Throwable cause)
- Initialize the exception with the given
message
and cause
.
- Parameters:
message
- a detailed message of the cause of the exceptioncause
- the original cause of this exception
Copyright © 2010-2016. All Rights Reserved.