Class JavaNgrokHTTPException

  • All Implemented Interfaces:
    java.io.Serializable

    public class JavaNgrokHTTPException
    extends JavaNgrokException
    Thrown from NgrokClient when an error occurs making a request to the ngrok web interface.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaNgrokHTTPException​(java.lang.String message, java.lang.Throwable cause, java.lang.String url, int statusCode, java.lang.String body)
      An exception with a message and a root cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()
      Get the response body.
      int getStatusCode()
      Get the HTTP status code.
      java.lang.String getUrl()
      Get the URL.
      • 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

      • JavaNgrokHTTPException

        public JavaNgrokHTTPException​(java.lang.String message,
                                      java.lang.Throwable cause,
                                      java.lang.String url,
                                      int statusCode,
                                      java.lang.String body)
        An exception with a message and a root cause.
        Parameters:
        message - The message describing the exception.
        cause - The initial cause of the exception.
        url - The URL.
        statusCode - The HTTP status code.
        body - The response body.
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Get the URL.
      • getStatusCode

        public int getStatusCode()
        Get the HTTP status code.
      • getBody

        public java.lang.String getBody()
        Get the response body.