Package io.goobi.viewer.api.rest.model
Class ErrorMessage
java.lang.Object
io.goobi.viewer.api.rest.model.ErrorMessage
- All Implemented Interfaces:
IResponseMessage
ErrorMessage class.
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorDescriptionErrorMessage
(int status, String message) Constructor for ErrorMessage.ErrorMessage
(int status, String message, String stackTrace) Constructor for ErrorMessage.ErrorMessage
(RestApiException exception) Constructor for ErrorMessage. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldmessage
.Getter for the fieldstackTrace
.int
Getter for the fieldstatus
.
-
Constructor Details
-
ErrorMessage
public ErrorMessage() -
ErrorMessage
Constructor for ErrorMessage.
- Parameters:
status
- a int.message
- aString
object.
-
ErrorMessage
Constructor for ErrorMessage.
-
ErrorMessage
Constructor for ErrorMessage.
- Parameters:
exception
- aRestApiException
object.
-
-
Method Details
-
getStatus
public int getStatus()Getter for the field
status
.- Returns:
- the status
-
getMessage
Getter for the field
message
.- Specified by:
getMessage
in interfaceIResponseMessage
- Returns:
- the message
-
getStackTrace
Getter for the field
stackTrace
.- Returns:
- the stackTrace
-