public class ErrorMessage
extends java.lang.Object
Helper class to send back Error messages in JSON format;
Modifier and Type | Field and Description |
---|---|
java.lang.String |
message
A full message
|
int |
status
matches HTTP Status
|
java.lang.String |
statusMessage
A shortened message that can be put in a status
|
Constructor and Description |
---|
ErrorMessage(java.lang.Throwable err) |
Modifier and Type | Method and Description |
---|---|
ErrorMessage |
addDetails(java.lang.String newDetails) |
java.lang.String |
getDestinationServer() |
void |
setDestinationServer(java.lang.String destinationServer) |
ErrorMessage |
setDetails(java.lang.String newDetails) |
io.vertx.core.json.JsonObject |
toJson() |
java.lang.String |
toString() |
public final int status
matches HTTP Status
public final java.lang.String message
A full message
public final java.lang.String statusMessage
A shortened message that can be put in a status
public ErrorMessage addDetails(java.lang.String newDetails)
newDetails
- public java.lang.String getDestinationServer()
public void setDestinationServer(java.lang.String destinationServer)
destinationServer
- the destinationServer to setpublic ErrorMessage setDetails(java.lang.String newDetails)
newDetails
- public io.vertx.core.json.JsonObject toJson()
public java.lang.String toString()
toString
in class java.lang.Object