org.glassfish.jersey.message.internal
Class HeaderValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ws.rs.ProcessingException
                  extended by org.glassfish.jersey.message.internal.HeaderValueException
All Implemented Interfaces:
Serializable

public class HeaderValueException
extends ProcessingException

Processing exception indicating that an attempt to read a value of a header failed.

Author:
Marek Potociar (marek.potociar at oracle.com)
See Also:
Serialized Form

Nested Class Summary
static class HeaderValueException.Context
          Context that contains header problems causing this exception (e.g.
 
Constructor Summary
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.
 
Method Summary
 HeaderValueException.Context getContext()
          Get the exception context.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderValueException

public HeaderValueException(String message,
                            Throwable cause,
                            HeaderValueException.Context context)
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

public HeaderValueException(String message,
                            HeaderValueException.Context context)
Create a new header value exception from message and context.

Parameters:
message - Exception message.
context - Context in which this exception was thrown.
Method Detail

getContext

public HeaderValueException.Context getContext()
Get the exception context.

Returns:
Context in which the exception was thrown.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.