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:
Serializable
The type of exceptions raised by HTTP servers returning unexpected errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBLHTTPErrorException(int inStatusCode, String inStatusMessage, List<BLNexusError> inErrors) Construct an exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BLHTTPErrorException
Construct an exception.- Parameters:
inStatusCode- The HTTP status codeinStatusMessage- The HTTP status messageinErrors- The Nexus errors
-
-
Method Details
-
errors
- Returns:
- The Nexus errors, if any
-
statusCode
public int statusCode()- Returns:
- The HTTP status code
-
statusMessage
- Returns:
- The HTTP status message
-