
org.seedstack.business.domain.AggregateNotFoundException Maven / Gradle / Ivy
/*
* Copyright © 2013-2024, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.business.domain;
/**
* This exception is thrown when the absence of an aggregate is an error condition.
*/
public class AggregateNotFoundException extends RuntimeException {
/**
* Creates the exception without message nor cause.
*/
public AggregateNotFoundException() {
}
/**
* Creates the exception with an error message.
*
* @param message the message.
*/
public AggregateNotFoundException(String message) {
super(message);
}
/**
* Creates the exception with an error message and a cause.
*
* @param message the message.
* @param cause the cause.
*/
public AggregateNotFoundException(String message, Throwable cause) {
super(message, cause);
}
/**
* Creates the exception with a cause.
*
* @param cause the cause.
*/
public AggregateNotFoundException(Throwable cause) {
super(cause);
}
/**
* Creates the exception with an error message, a cause and specify additional parameters.
*
* @param message the message.
* @param cause the cause.
* @param enableSuppression whether or not suppression is enabled or disabled
* @param writableStackTrace whether or not the stack trace should be writable
*/
public AggregateNotFoundException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy