org.axonframework.eventstore
Class EventStreamNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.common.AxonException
                  extended by org.axonframework.common.AxonNonTransientException
                      extended by org.axonframework.eventstore.EventStoreException
                          extended by 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

Constructor Summary
EventStreamNotFoundException(String message)
          Initialize the exception with the given message.
EventStreamNotFoundException(String type, Object identifier)
          Initialize the exception with a default message for a given aggregate identifier of given type.
EventStreamNotFoundException(String message, Throwable cause)
          Initialize the exception with the given message and cause.
 
Method Summary
 
Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOf
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 found
identifier - 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 exception
cause - the original cause of this exception


Copyright © 2010-2016. All Rights Reserved.