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
public class ResponseConversionException extends ClientRuntimeException
Thrown when a response entity cannot be converted to an instance of a given type.- Since:
- 1.14.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResponseConversionException(String message, URI resource, Class<?> type)
Instantiates an exception for the given resource location and type for extracting from the response entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getResource()
Returns the resource location.Class<?>
getType()
Returns the Java type the response entity was to convert to.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResponseConversionException
public ResponseConversionException(String message, URI resource, Class<?> type)
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.
-
-