Package com.sodius.oslc.client
Class ResponseConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sodius.oslc.client.ClientRuntimeException
com.sodius.oslc.client.ResponseConversionException
- All Implemented Interfaces:
Serializable
Thrown when a response entity cannot be converted to an instance of a given type.
- Since:
- 1.14.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResponseConversionException(String message, URI resource, Class<?> type) Instantiates an exception for the given resource location and type for extracting from the response entity. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseConversionException
Instantiates an exception for the given resource location and type for extracting from the response entity.- Parameters:
message- the exception message.resource- the resource location on which a request was made.type- the Java type the response entity was to convert to.
-
-
Method Details
-
getResource
Returns the resource location.- Returns:
- the resource location.
-
getType
Returns the Java type the response entity was to convert to.- Returns:
- the Java type the response entity was to convert to.
-