Class RequestFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.ac.manchester.spinnaker.alloc.web.RequestFailedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RequestFailedException.BadArgs, RequestFailedException.EmptyResponse, RequestFailedException.ItsGone, RequestFailedException.NotFound

public class RequestFailedException
extends RuntimeException
Thrown to indicate various sorts of problems with the service. Very much like a WebApplicationException except with a different handling strategy.
Author:
Donal Fellows
See Also:
Serialized Form
  • Constructor Details

    • RequestFailedException

      public RequestFailedException​(Response.Status code, String message, Throwable cause)
      Create an instance.
      Parameters:
      code - The status code.
      message - The response message contents.
      cause - The cause of the exception.
    • RequestFailedException

      public RequestFailedException​(Response.Status code, String message)
      Create an instance.
      Parameters:
      code - The status code.
      message - The response message contents.
    • RequestFailedException

      public RequestFailedException​(Throwable cause)
      Create an instance that indicates an internal server error.
      Parameters:
      cause - The cause of the server error. This will be used as part of the description of the failure.