Class MissingFriendException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sodius.oslc.client.oauth.MissingFriendException
All Implemented Interfaces:
Serializable

public class MissingFriendException extends Exception
Thrown when no Friend is found to enable requesting a given resource from an OSLC Remote Application. This exception is wrapped into ClientRuntimeException by an OAuth OslcClient whenever a resource is accessed and a friend is missing to perform the authorization.
Since:
1.14.0
See Also:
  • Constructor Details

    • MissingFriendException

      public MissingFriendException(URI resource)
      Instantiates an exception for the given resource for which a corresponding friend is missing.
      Parameters:
      resource - the OSLC resource that was requested.
  • Method Details

    • getResource

      public URI getResource()
      Returns the OSLC resource that was requested and for which a corresponding friend is missing.
      Returns:
      the OSLC resource that was requested.