Class RequestException

java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.array21.espocrm.client.RequestException
All Implemented Interfaces:
Serializable

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

    • RequestException

      public RequestException(int statusCode, String error)
  • Method Details

    • getStatusCode

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