Class 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:
  • Constructor Details

    • 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.
  • Method Details

    • getResource

      public URI getResource()
      Returns the resource location.
      Returns:
      the resource location.
    • getType

      public Class<?> getType()
      Returns the Java type the response entity was to convert to.
      Returns:
      the Java type the response entity was to convert to.