Package ej.hoka.http.encoding
Class HttpUnsupportedEncodingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.UnsupportedEncodingException
-
- ej.hoka.http.encoding.HttpUnsupportedEncodingException
-
- All Implemented Interfaces:
Serializable
public class HttpUnsupportedEncodingException extends UnsupportedEncodingException
This exception is thrown whenHttpConstants.HEADER_TRANSFER_ENCODINGorHttpConstants.HEADER_CONTENT_ENCODINGcannot be handled by the server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpUnsupportedEncodingException(String field, String encoding)Creates a newUnsupportedEncodingExceptionwith the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the detail message string of this throwable.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
HttpUnsupportedEncodingException
public HttpUnsupportedEncodingException(String field, @Nullable String encoding)
Creates a newUnsupportedEncodingExceptionwith the given parameters.- Parameters:
field- the HTTP Header field causing the error.encoding- the encoding which is not supported.
-
-
Method Detail
-
getMessage
@Nullable public String getMessage()
Description copied from class:ThrowableReturns the detail message string of this throwable.- Overrides:
getMessagein classThrowable- Returns:
- the detail message string of this
Throwableinstance (which may benull).
-
-