All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.evento.common.modeling.exceptions.AggregateInitializedError Maven / Gradle / Ivy

The newest version!
package com.evento.common.modeling.exceptions;

/**
 * RuntimeException indicating that an aggregate has already been initialized.
 */
public class AggregateInitializedError extends RuntimeException {


	/**
	 * RuntimeException indicating that an aggregate has already been initialized.
	 *
	 * @param message the detailed error message
	 */
	public AggregateInitializedError(String message) {
		super(message);
	}

	/**
	 * Builds an instance of AggregateInitializedError.
	 *
	 * @param aggregateId The ID of the aggregate.
	 * @return The AggregateInitializedError instance.
	 */
	public static AggregateInitializedError build(String aggregateId) {
		return new AggregateInitializedError("The aggregate %s in initialized".formatted(aggregateId));
	}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy