public class ServerAPIException extends io.vertx.core.impl.NoStackTraceThrowable
Modifier and Type | Field and Description |
---|---|
static String | GENERIC_ERROR A generic error occurred, see reason for details |
static String | HTTP_ERROR The server issued an HTTP request (e.g. |
static String | INVALID_PROPERTY_SYNTAX_ERROR The syntax of a property command is not valid |
Constructor and Description |
---|
ServerAPIException(String type, String reason) Create a new exception |
Modifier and Type | Method and Description |
---|---|
String | getType() Get the exception type |
JsonObject | toJson() Serialize exception |
static JsonObject | toJson(String type, String reason) Create a JSON object from a type and a reason |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String INVALID_PROPERTY_SYNTAX_ERROR
public static final String HTTP_ERROR
public static final String GENERIC_ERROR
public String getType()
public JsonObject toJson()
public static JsonObject toJson(String type, String reason)
type
- the typereason
- the reason