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
ConstructorsConstructorDescriptionErrorMessage(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.intGetter for the fieldstatus.
-
Constructor Details
-
ErrorMessage
public ErrorMessage() -
ErrorMessage
Constructor for ErrorMessage.
- Parameters:
status- a int.message- aStringobject.
-
ErrorMessage
Constructor for ErrorMessage.
-
ErrorMessage
Constructor for ErrorMessage.
- Parameters:
exception- aRestApiExceptionobject.
-
-
Method Details
-
getStatus
public int getStatus()Getter for the field
status.- Returns:
- the status
-
getMessage
Getter for the field
message.- Specified by:
getMessagein interfaceIResponseMessage- Returns:
- the message
-
getStackTrace
Getter for the field
stackTrace.- Returns:
- the stackTrace
-