org.mortbay.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.mortbay.http.HttpException
All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.io.IOException

Exception for known HTTP error status.

Version:
$Revision: 1.5 $
Author:
Greg Wilkins (gregw)
See Also:
Serialized Form

Constructor Summary
HttpException()
           
HttpException(int code)
           
HttpException(int code, java.lang.String message)
           
 
Method Summary
 int getCode()
           
 java.lang.String getReason()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpException

public HttpException()

HttpException

public HttpException(int code)

HttpException

public HttpException(int code,
                     java.lang.String message)
Method Detail

getCode

public int getCode()

getReason

public java.lang.String getReason()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.