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
public class MissingFriendException extends Exception
Thrown when noFriend
is found to enable requesting a given resource from an OSLC Remote Application. This exception is wrapped intoClientRuntimeException
by an OAuthOslcClient
whenever a resource is accessed and a friend is missing to perform the authorization.- Since:
- 1.14.0
- See Also:
OslcClients.oauth(OAuthStore, OAuthHandler)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MissingFriendException(URI resource)
Instantiates an exception for the given resource for which a corresponding friend is missing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getResource()
Returns 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 Detail
-
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 Detail
-
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.
-
-