Package org.broadinstitute.http.nio
Class UnexpectedHttpResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.broadinstitute.http.nio.UnexpectedHttpResponseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IncompatibleResponseToRangeQueryException
thrown when we recieve an unexpected response code from an http request which is not otherwise specially handled
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
responseCode
private final int responseCodehttp response code
-
-
Constructor Details
-
UnexpectedHttpResponseException
- Parameters:
responseCode
- the http response code recievedmsg
- human readable error message
-
-
Method Details
-
getResponseCode
public int getResponseCode()- Returns:
- the http response code
-