|
YAACC - UPNP Client and Server
|
Every failure of the control library: a JSON-RPC error of the server, an unreadable answer, a timeout, a lost connection. More...


Classes | |
| enum | Kind |
| What kind of failure it is. More... | |
Public Member Functions | |
| SnapcastException (Kind kind, int code, String message, String data, Throwable cause) | |
| Kind | getKind () |
| int | getCode () |
| The JSON-RPC error code; 0 when the failure did not come from a JSON-RPC error. | |
| String | getData () |
The data of the JSON-RPC error (the real reason for most errors of the server), or null. | |
| boolean | isUnauthorized () |
| boolean | isForbidden () |
| boolean | isAuthorizationError () |
| True when the server wants credentials (401) or refuses these (403). | |
| String | describe () |
| The message and the data in one line, for an error row. | |
Every failure of the control library: a JSON-RPC error of the server, an unreadable answer, a timeout, a lost connection.
The library throws nothing else out of its public methods for server input (a wrong argument of the caller is an IllegalArgumentException).
| String de.yaacc.snapcast.control.SnapcastException.describe | ( | ) |
The message and the data in one line, for an error row.
The text comes from the server: it is display text (control characters are already replaced), never an identity and never a log line, because it can carry addresses or other identifiers of the server's network.