Class RequestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RequestException
    extends java.lang.Exception
    This exception is thrown when we receive a non-200 HTTP status code from EspoCRM
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatusCode()
      The HTTP status code returned by EspoCRM
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RequestException

        public RequestException​(int statusCode,
                                java.lang.String error)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        The HTTP status code returned by EspoCRM
        Returns:
        The HTTP status code