Enum dasi::Error
[−]
[src]
pub enum Error { Hyper(HyperError), Json(JsonError), WebSocket(WebSocketError), Io(IoError), Closed(Option<u16>, Vec<u8>), Decode(&'static str, Value), Status(StatusCode, Option<Value>), RateLimited(u64), Protocol(&'static str), Other(&'static str), }
Discord API error type.
Variants
Hyper | A | |
Json | A | |
WebSocket | A | |
Io | A | |
Closed | A websocket connection was closed, possibly with a message | |
Decode | A json decoding error, with a description and the offending value | |
Status | A generic non-success response from the REST API | |
RateLimited | A rate limit error, with how many milliseconds to wait before retrying | |
Protocol | A Discord protocol error, with a description | |
Other | A miscellaneous error, with a description |