Class SpallocClient.SpallocException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.ac.manchester.spinnaker.alloc.client.SpallocClient.SpallocException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- SpallocClient
public static class SpallocClient.SpallocException extends RuntimeException
Exception caused by the server sending an error.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SpallocException(String message, int responseCode)
Create an instance. -
Method Summary
Modifier and Type Method Description int
getResponseCode()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SpallocException
Create an instance.- Parameters:
message
- The message body of the error.responseCode
- The HTTP response code that triggered the exception.
-
-
Method Details
-
getResponseCode
public int getResponseCode()- Returns:
- The HTTP response code that triggered the exception.
-