Class EntityAvailableInAnotherContextException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FacetAvailableInAnotherContextException, ResourceAvailableInAnotherContextException

public class EntityAvailableInAnotherContextException extends AvailableInAnotherContextException
Base exception for "the requested Resource or Facet exists, but only in a Context other than the one scoping the request" error conditions. The server always throws the more specific leaf (ResourceAvailableInAnotherContextException or FacetAvailableInAnotherContextException); this common superclass lets callers catch either uniformly. Mapped to 403 Forbidden by the REST layer.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Constructor Details

    • EntityAvailableInAnotherContextException

      public EntityAvailableInAnotherContextException(String message)
      Instantiates a new entity available in another context exception.
      Parameters:
      message - the message
    • EntityAvailableInAnotherContextException

      public EntityAvailableInAnotherContextException(Throwable cause)
      Instantiates a new entity available in another context exception.
      Parameters:
      cause - the cause
    • EntityAvailableInAnotherContextException

      public EntityAvailableInAnotherContextException(String message, Throwable cause)
      Instantiates a new entity available in another context exception.
      Parameters:
      message - the message
      cause - the cause