Class HttpError

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ebasetech.xi.exceptions.FormRuntimeException
com.ebasetech.xi.services.HttpError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HttpAuthorisationError, HttpNotFoundError, HttpRequestError, HttpServerError, HttpUnknownError

public abstract class HttpError
extends com.ebasetech.xi.exceptions.FormRuntimeException
HttpError contains the reason for the failure and the response code that generated the error
Since:
V5.13
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    HttpError​(java.lang.String error, int code)  
  • Method Summary

    Modifier and Type Method Description
    int getCode()
    HTTP Response code that generated the error
    java.lang.String getErrorMessage()
    The error message describing the reason for the failure

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HttpError

      public HttpError​(java.lang.String error, int code)
  • Method Details

    • getCode

      public int getCode()
      HTTP Response code that generated the error
      Returns:
    • getErrorMessage

      public java.lang.String getErrorMessage()
      The error message describing the reason for the failure
      Returns:
      error message for the error