public final class HttpException extends IOException
Constructor and Description |
---|
HttpException(String message,
int httpStatus,
URL url) |
HttpException(String message,
int httpStatus,
URL url,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatus() |
URL |
getUrl() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpException(String message, int httpStatus, URL url)
message
- A message describing the reason why the exception was thrown.httpStatus
- The HTTP status of the response that caused the exception.url
- The URL queried.public HttpException(String message, int httpStatus, URL url, Throwable cause)
message
- A message describing the reason why the exception was thrown.httpStatus
- The HTTP status of the response that caused the exception.url
- The URL queried.cause
- The cause of the exception.public int getHttpStatus()
public URL getUrl()
Copyright © 2016 MaxMind, Inc.. All rights reserved.