Top Fields Constructors Methods
org.mortbay.jetty

public Class HttpException

extends IOException
Class Inheritance
Imports
java.io.IOException

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv int

Constructor Summary

AccessConstructor and Description
public
HttpException(int status)

public
HttpException(int status, String reason)

protected
HttpException(int status, String reason, Throwable rootCause)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Returns the reason.
getReason
()

public int

Returns:

Returns the status.
getStatus
()

public void
setReason(String
The reason to set.
reason
)

public void
setStatus(int
The status to set.
status
)

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

_reasonback to summary
pack-priv String _reason
_statusback to summary
pack-priv int _status

Constructor Detail

HttpExceptionback to summary
public HttpException(int status)
HttpExceptionback to summary
public HttpException(int status, String reason)
HttpExceptionback to summary
protected HttpException(int status, String reason, Throwable rootCause)

Method Detail

getReasonback to summary
public String getReason()
Returns:String

Returns the reason.

getStatusback to summary
public int getStatus()
Returns:int

Returns the status.

setReasonback to summary
public void setReason(String reason)
Parameters
reason:String

The reason to set.

setStatusback to summary
public void setStatus(int status)
Parameters
status:int

The status to set.

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.