Class HeaderValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.ws.rs.ProcessingException
org.glassfish.jersey.message.internal.HeaderValueException
- All Implemented Interfaces:
Serializable
Processing exception
indicating that an attempt to
read a value of a header failed.- Author:
- Marek Potociar
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Context that contains header problems causing this exception (e.g. forInboundMessageContext
the corresponding value isHeaderValueException.Context.INBOUND
). -
Constructor Summary
ConstructorDescriptionHeaderValueException
(String message, Throwable cause, HeaderValueException.Context context) Create a new header value exception from message, cause and context.HeaderValueException
(String message, HeaderValueException.Context context) Create a new header value exception from message and context. -
Method Summary
Modifier and TypeMethodDescriptionGet the exception context.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HeaderValueException
Create a new header value exception from message, cause and context.- Parameters:
message
- Exception message.cause
- Exception cause.context
- Context in which this exception was thrown.
-
HeaderValueException
Create a new header value exception from message and context.- Parameters:
message
- Exception message.context
- Context in which this exception was thrown.
-
-
Method Details
-
getContext
Get the exception context.- Returns:
- Context in which the exception was thrown.
-