Class UnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hc.core5.http.HttpException
org.apache.hc.core5.http.ProtocolException
org.apache.hc.core5.http.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
Signals an unsupported media type.
- Since:
- 5.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception without a detail message.UnsupportedMediaTypeException(String message) Creates an exception with the specified detail message.UnsupportedMediaTypeException(ContentType contentType) Creates an exception with a detail message for the given ContentType. -
Method Summary
Methods inherited from class HttpException
cleanMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException()Creates an exception without a detail message. -
UnsupportedMediaTypeException
Creates an exception with a detail message for the given ContentType.- Parameters:
contentType- The unsupported ContentType.
-
UnsupportedMediaTypeException
Creates an exception with the specified detail message.- Parameters:
message- The exception detail message
-