
com.evento.common.modeling.exceptions.AggregateInitializedError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evento-common Show documentation
Show all versions of evento-common Show documentation
Common Library of Object and Algorithms for Evento Framework
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