Package io.goobi.viewer.exceptions
Class RestApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.goobi.viewer.exceptions.RestApiException
- All Implemented Interfaces:
Serializable
RestApiException class.
- Author:
- Florian Alpers
- See Also:
-
Constructor Summary
ConstructorDescriptionRestApiException
(int statusCode) Constructor for RestApiException.RestApiException
(String message, int statusCode) Constructor for RestApiException.RestApiException
(String message, Throwable cause, int statusCode) Constructor for RestApiException.RestApiException
(String message, Throwable cause, javax.ws.rs.core.Response.Status status) RestApiException
(String message, javax.ws.rs.core.Response.Status status) RestApiException
(Throwable cause, int statusCode) Constructor for RestApiException.RestApiException
(Throwable cause, javax.ws.rs.core.Response.Status status) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response.Status
int
Getter for the fieldstatusCode
.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestApiException
public RestApiException(int statusCode) Constructor for RestApiException.
- Parameters:
statusCode
- a int.
-
RestApiException
Constructor for RestApiException.
-
RestApiException
-
RestApiException
Constructor for RestApiException.
- Parameters:
message
- aString
object.statusCode
- a int.
-
RestApiException
-
RestApiException
Constructor for RestApiException.
- Parameters:
cause
- aThrowable
object.statusCode
- a int.
-
RestApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode()Getter for the field
statusCode
.- Returns:
- the statusCode
-
getStatus
public javax.ws.rs.core.Response.Status getStatus()
-