Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2010. Axon Framework
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.axonframework.eventstore;
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.

Author(s):
Allard Buijze
Since:
0.5
    private static final long serialVersionUID = -6251943760559274432L;

    
Initialize the exception with the given message.

Parameters:
message a detailed message of the cause of the exception
    public EventStreamNotFoundException(String message) {
        super(message);
    }

    
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
    public EventStreamNotFoundException(String typeAggregateIdentifier identifier) {
        this(String.format("Aggregate of type [%s] with identifier [%s] cannot be found.",
                           type,
                           identifier.asString()));
    }

    
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
    public EventStreamNotFoundException(String messageThrowable cause) {
        super(messagecause);
    }
New to GrepCode? Check out our FAQ X