Package com.sodius.oslc.client.oauth
Class MissingFriendException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sodius.oslc.client.oauth.MissingFriendException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionMissingFriendException(URI resource) Instantiates an exception for the given resource for which a corresponding friend is missing. -
Method Summary
Modifier and TypeMethodDescriptionReturns the OSLC resource that was requested and for which a corresponding friend is missing.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingFriendException
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
Returns the OSLC resource that was requested and for which a corresponding friend is missing.- Returns:
- the OSLC resource that was requested.
-