Class ModelIllegalStateException

All Implemented Interfaces:
Serializable

public class ModelIllegalStateException extends ModelException
Thrown when data can't be retrieved for the model. This occurs when an entity has been removed or updated in the meantime. This might wrap an optimistic lock exception depending on the store. Callers might use this exception to filter out entities that are in an illegal state, see org.keycloak.models.utils.ModelToRepresentation#toRepresentation(Stream, Function)
Author:
Alexander Schwartz
See Also:
  • Constructor Details

    • ModelIllegalStateException

      public ModelIllegalStateException()
    • ModelIllegalStateException

      public ModelIllegalStateException(String message)
    • ModelIllegalStateException

      public ModelIllegalStateException(String message, Throwable cause)
    • ModelIllegalStateException

      public ModelIllegalStateException(Throwable cause)