|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.melati.util.HttpHeader.HttpHeaderException
public static class HttpHeader.HttpHeaderException
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.
| 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 |
|---|
public HttpHeader.HttpHeaderException(java.lang.String message)
public HttpHeader.HttpHeaderException(java.lang.String message,
java.lang.Exception e)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||