org.eclipse.jetty.http
类 HttpException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 org.eclipse.jetty.http.HttpException
所有已实现的接口:
Serializable

public class HttpException
extends IOException

另请参见:
序列化表格

构造方法摘要
HttpException(int status)
           
HttpException(int status, String reason)
           
HttpException(int status, String reason, Throwable rootCause)
           
 
方法摘要
 String getReason()
           
 int getStatus()
           
 void setReason(String reason)
           
 void setStatus(int status)
           
 String toString()
           
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

HttpException

public HttpException(int status)

HttpException

public HttpException(int status,
                     String reason)

HttpException

public HttpException(int status,
                     String reason,
                     Throwable rootCause)
方法详细信息

getReason

public String getReason()
返回:
Returns the reason.

setReason

public void setReason(String reason)
参数:
reason - The reason to set.

getStatus

public int getStatus()
返回:
Returns the status.

setStatus

public void setStatus(int status)
参数:
status - The status to set.

toString

public String toString()
覆盖:
Throwable 中的 toString


Copyright © 2013. All Rights Reserved.