Package com.io7m.brooklime.api
Class BLHTTPErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.brooklime.api.BLException
com.io7m.brooklime.api.BLHTTPException
com.io7m.brooklime.api.BLHTTPErrorException
- All Implemented Interfaces:
java.io.Serializable
public final class BLHTTPErrorException extends BLHTTPException
The type of exceptions raised by HTTP servers returning unexpected errors.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BLHTTPErrorException(int inStatusCode, java.lang.String inStatusMessage)Construct an exception. -
Method Summary
Modifier and Type Method Description intstatusCode()java.lang.StringstatusMessage()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
BLHTTPErrorException
public BLHTTPErrorException(int inStatusCode, java.lang.String inStatusMessage)Construct an exception.- Parameters:
inStatusCode- The HTTP status codeinStatusMessage- The HTTP status message
-
-
Method Details
-
statusCode
public int statusCode()- Returns:
- The HTTP status code
-
statusMessage
public java.lang.String statusMessage()- Returns:
- The HTTP status message
-