Module com.github.alexdlaird.ngrok
Package com.github.alexdlaird.exception
Class JavaNgrokHTTPException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.alexdlaird.exception.JavaNgrokException
-
- com.github.alexdlaird.exception.JavaNgrokHTTPException
-
- All Implemented Interfaces:
java.io.Serializable
public class JavaNgrokHTTPException extends JavaNgrokException
Thrown fromNgrokClientwhen an error occurs making a request to thengrokweb 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.StringgetBody()Get the response body.intgetStatusCode()Get the HTTP status code.java.lang.StringgetUrl()Get the URL.
-
-
-
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.
-
-