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 Details

    • SpallocException

      public SpallocException​(String message, int responseCode)
      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.