Class ModelErrors
java.lang.Object
io.fluxzero.sdk.modeling.ModelErrors
Customer-facing errors for SDK-provided Model checks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IllegalCommandExceptionExisting Entity creation rejection, retained as the same instance.static final IllegalCommandExceptionExisting Entity lookup rejection, retained as the same instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic IllegalCommandExceptionmaxChildrenExceeded(Class<?> parentType, Class<?> childType) Mutation would grow a child scope beyond its capacity.static IllegalCommandExceptionparentDeletionBlocked(Class<?> parentType, Class<?> childType) A deletion-protected child survives parent deletion.static IllegalCommandExceptionparentNotFound(Class<?> parentType) Required referenced parent does not exist in the final mutation state.static IllegalCommandExceptionparentRequired(Class<?> parentType) Required reference is absent.
-
Field Details
-
ALREADY_EXISTS_EXCEPTION
Existing Entity creation rejection, retained as the same instance. -
NOT_FOUND_EXCEPTION
Existing Entity lookup rejection, retained as the same instance.
-
-
Method Details
-
parentRequired
Required reference is absent. -
parentNotFound
Required referenced parent does not exist in the final mutation state. -
maxChildrenExceeded
Mutation would grow a child scope beyond its capacity. -
parentDeletionBlocked
public static IllegalCommandException parentDeletionBlocked(Class<?> parentType, Class<?> childType) A deletion-protected child survives parent deletion.
-