Class AppExceptionMessage
java.lang.Object
org.eclipse.dirigible.commons.api.helpers.AppExceptionMessage
public class AppExceptionMessage extends Object
Error message that is returned if an application error occur.
-
Constructor Summary
Constructors Constructor Description AppExceptionMessage()Needed for serialization / de-serialization.AppExceptionMessage(javax.ws.rs.core.Response.Status status, String message)Default constructor. -
Method Summary
Modifier and Type Method Description StringgetMessage()Gets the message.intgetStatus()Sets the server response status.voidsetMessage(String message)Sets the error message.voidsetStatus(int status)Sets the status.
-
Constructor Details
-
AppExceptionMessage
public AppExceptionMessage()Needed for serialization / de-serialization. -
AppExceptionMessage
Default constructor.- Parameters:
status- the response server status.message- the actual error message.
-
-
Method Details
-
getMessage
Gets the message.- Returns:
- the error message.
-
setMessage
Sets the error message.- Parameters:
message- the new message
-
getStatus
public int getStatus()Sets the server response status.- Returns:
- the server response status.
-
setStatus
public void setStatus(int status)Sets the status.- Parameters:
status- the server response status.
-