Klasse HttpErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.uplanet.net.http.HttpErrorException
Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
HttpClientErrorException, HttpServerErrorException

public class HttpErrorException extends Exception
Siehe auch:
  • Konstruktordetails

    • HttpErrorException

      public HttpErrorException(int p_iStatus)
      Create a HTTP exception with the given status code.
      Parameter:
      p_iStatus - The status code.
    • HttpErrorException

      public HttpErrorException(int p_iStatus, String p_strMessage)
      Create a HTTP exception with the given status code.
      Parameter:
      p_iStatus - The status code.
      p_strMessage - An error message that can be later retrieved by the Throwable.getMessage() method.
    • HttpErrorException

      public HttpErrorException(int p_iStatus, Throwable p_cause)
      Create a HTTP exception with the given status code.
      Parameter:
      p_iStatus - The status code.
      p_cause - The cause that can be later retrieved by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
    • HttpErrorException

      public HttpErrorException(int p_iStatus, String p_strMessage, Throwable p_cause)
      Create a HTTP exception with the given status code.
      Parameter:
      p_iStatus - The status code.
      p_strMessage - An error message that can be later retrieved by the Throwable.getMessage() method.
      p_cause - The cause that can be later retrieved by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
  • Methodendetails

    • getStatus

      public int getStatus()
      Get the HTTP status associated with this error.
      Gibt zurück:
      The HTTP status.
    • getStatusMessage

      public String getStatusMessage()
      Get the HTTP status message associated with this error.

      If no message was provided with the constructor, the standard status message will be returned.

      Gibt zurück:
      The status message.