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
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:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe client provided bad arguments in a request.static classThe response is empty.static classA resource is no longer believed to exist.static classA resource cannot be located.
- 
Constructor SummaryConstructorsConstructorDescriptionRequestFailedException(jakarta.ws.rs.core.Response.Status code, String message) Create an instance.RequestFailedException(jakarta.ws.rs.core.Response.Status code, String message, Throwable cause) Create an instance.RequestFailedException(Throwable cause) Create an instance that indicates an internal server error.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
RequestFailedExceptionpublic RequestFailedException(jakarta.ws.rs.core.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.
 
- 
RequestFailedExceptionCreate an instance.- Parameters:
- code- The status code.
- message- The response message contents.
 
- 
RequestFailedExceptionCreate 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.
 
 
-