Package org.apache.hc.core5.http
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:
java.io.Serializable
public class UnsupportedMediaTypeException extends ProtocolException
Signals an unsupported media type.- Since:
- 5.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedMediaTypeException()Creates an exception without a detail message.UnsupportedMediaTypeException(java.lang.String message)Creates an exception with the specified detail message.UnsupportedMediaTypeException(ContentType contentType)Creates an exception with a detail message for the given ContentType.
-
-
-
Constructor Detail
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException()
Creates an exception without a detail message.
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException(ContentType contentType)
Creates an exception with a detail message for the given ContentType.- Parameters:
contentType- The unsupported ContentType.
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException(java.lang.String message)
Creates an exception with the specified detail message.- Parameters:
message- The exception detail message
-
-