Package nzilbb.ag.automation.util
Class RequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- nzilbb.ag.automation.util.RequestException
-
- All Implemented Interfaces:
Serializable
public class RequestException extends Exception
An error that occurred during a RequestRouter request.- Author:
- Robert Fromont robert@fromont.net.nz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestException(int httpStatus, String message, String method, URI uri)Constructor.RequestException(int httpStatus, String message, String method, URI uri, Throwable cause)Constructor.RequestException(int httpStatus, String method, URI uri, Throwable cause)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpStatus()Getter forhttpStatus: The HTTP status code to return.StringgetMethod()Getter formethod: The request method.URIgetUri()Getter foruri: The request URI.RequestExceptionsetHttpStatus(int newHttpStatus)Setter forhttpStatus: The HTTP status code to return.StringtoString()String representation of the object.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
RequestException
public RequestException(int httpStatus, String message, String method, URI uri, Throwable cause)Constructor.- Parameters:
httpStatus- The HTTP status code to return.message- The error message.method- The request method.uri- The request URI.cause- The root cause of the exception.
-
RequestException
public RequestException(int httpStatus, String method, URI uri, Throwable cause)Constructor.- Parameters:
httpStatus- The HTTP status code to return.method- The request method.uri- The request URI.cause- The root cause of the exception.
-
-
Method Detail
-
getMethod
public String getMethod()
Getter formethod: The request method.- Returns:
- The request method.
-
getUri
public URI getUri()
Getter foruri: The request URI.- Returns:
- The request URI.
-
getHttpStatus
public int getHttpStatus()
Getter forhttpStatus: The HTTP status code to return.- Returns:
- The HTTP status code to return.
-
setHttpStatus
public RequestException setHttpStatus(int newHttpStatus)
Setter forhttpStatus: The HTTP status code to return.- Parameters:
newHttpStatus- The HTTP status code to return.
-
-