Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.http
Class HttpException  view HttpException download HttpException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.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.4 $

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  int _code
           
 
Fields inherited from class java.io.IOException
 
Fields inherited from class java.lang.Throwable
 
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()
          Get a human-readable representation of this Throwable.
 
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
 

Field Detail

_code

private int _code
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()
Description copied from class: java.lang.Throwable
Get a human-readable representation of this Throwable. The detail message is retrieved by getLocalizedMessage(). Then, with a null detail message, this string is simply the object's class name; otherwise the string is getClass().getName() + ": " + message.