org.melati.util
Class HttpHeader.HttpHeaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.melati.util.HttpHeader.HttpHeaderException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
HttpHeader

public static class HttpHeader.HttpHeaderException
extends java.lang.Exception

Exception detected in an HttpHeader.

We might want to declare some supertype as thrown or make this outer.

Header fields are usually obtained from servlet containers or similar after some processing. But its possible that some unusual client has sent something erroneous or just unusual that has not been filtered out earlier and causes an error here.

In general detecting such problems requires parsing. So although we could nearly always blame the caller we provide a service instead (as part of the contract).

We do sometime blame the caller because we assume that the caller has checked the next token type before some call. We do this by throwing an IllegalStateException instead.

See Also:
Serialized Form

Constructor Summary
HttpHeader.HttpHeaderException(java.lang.String message)
          Create an instance with message.
HttpHeader.HttpHeaderException(java.lang.String message, java.lang.Exception e)
          Create an instance with message and cause.
 
Method Summary
 
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

HttpHeader.HttpHeaderException

public HttpHeader.HttpHeaderException(java.lang.String message)
Create an instance with message.


HttpHeader.HttpHeaderException

public HttpHeader.HttpHeaderException(java.lang.String message,
                                      java.lang.Exception e)
Create an instance with message and cause.



Copyright © 2000-2008 PanEris. All Rights Reserved.