public class JavaNgrokHTTPException extends JavaNgrokException
NgrokClient
when an error occurs making a request to the ngrok
web interface.Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Get the response body.
|
int |
getStatusCode()
Get the HTTP status code.
|
java.lang.String |
getUrl()
Get the URL.
|
public JavaNgrokHTTPException(java.lang.String message, java.lang.Throwable cause, java.lang.String url, int statusCode, java.lang.String body)
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.