public class HeaderValueException extends ProcessingException
Processing exception
indicating that an attempt to
read a value of a header failed.Modifier and Type | Class and Description |
---|---|
static class |
HeaderValueException.Context
Context that contains header problems causing this exception (e.g. for
InboundMessageContext
the corresponding value is HeaderValueException.Context.INBOUND ). |
Constructor and Description |
---|
HeaderValueException(String message,
HeaderValueException.Context context)
Create a new header value exception from message and context.
|
HeaderValueException(String message,
Throwable cause,
HeaderValueException.Context context)
Create a new header value exception from message, cause and context.
|
Modifier and Type | Method and Description |
---|---|
HeaderValueException.Context |
getContext()
Get the exception context.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HeaderValueException(String message, Throwable cause, HeaderValueException.Context context)
message
- Exception message.cause
- Exception cause.context
- Context in which this exception was thrown.public HeaderValueException(String message, HeaderValueException.Context context)
message
- Exception message.context
- Context in which this exception was thrown.public HeaderValueException.Context getContext()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.