Class ModelErrors

java.lang.Object
io.fluxzero.sdk.modeling.ModelErrors

public final class ModelErrors extends Object
Customer-facing errors for SDK-provided Model checks.
  • Field Details

    • ALREADY_EXISTS_EXCEPTION

      public static final IllegalCommandException ALREADY_EXISTS_EXCEPTION
      Existing Entity creation rejection, retained as the same instance.
    • NOT_FOUND_EXCEPTION

      public static final IllegalCommandException NOT_FOUND_EXCEPTION
      Existing Entity lookup rejection, retained as the same instance.
  • Method Details

    • parentRequired

      public static IllegalCommandException parentRequired(Class<?> parentType)
      Required reference is absent.
    • parentNotFound

      public static IllegalCommandException parentNotFound(Class<?> parentType)
      Required referenced parent does not exist in the final mutation state.
    • maxChildrenExceeded

      public static IllegalCommandException maxChildrenExceeded(Class<?> parentType, Class<?> childType)
      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.