public class ClientAPIException
extends io.vertx.core.impl.NoStackTraceThrowable
| Constructor and Description |
|---|
ClientAPIException(java.lang.String type,
java.lang.String reason)
Create a new exception
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getType()
Get the type of the error
|
static ClientAPIException |
parse(java.lang.String json)
Parse an API exception from a JSON string
|
public ClientAPIException(java.lang.String type,
java.lang.String reason)
type - the type of the errorreason - the reason for the errorpublic java.lang.String getType()
public static ClientAPIException parse(java.lang.String json)
json - the JSON string