Class RelationAvailableInAnotherContextException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConsistsOfAvailableInAnotherContextException, IsRelatedToAvailableInAnotherContextException

public class RelationAvailableInAnotherContextException extends AvailableInAnotherContextException
Base exception for "the requested relation exists, but only in a Context other than the one scoping the request" error conditions. The server always throws the more specific leaf (ConsistsOfAvailableInAnotherContextException or IsRelatedToAvailableInAnotherContextException); 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

    • RelationAvailableInAnotherContextException

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

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

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