aboutsummaryrefslogtreecommitdiff
path: root/src/client/error.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-03-25 15:35:50 -0700
committerZeyla Hellyer <[email protected]>2017-03-25 15:35:50 -0700
commit356c9c0d42f4b0583a2c7b5333196c4f4e6a73cc (patch)
treefe4296b5c07b32be2c3a7d1f2169fe3f00c1a415 /src/client/error.rs
parentFix Member methods due to variant joined_at values (diff)
downloadserenity-356c9c0d42f4b0583a2c7b5333196c4f4e6a73cc.tar.xz
serenity-356c9c0d42f4b0583a2c7b5333196c4f4e6a73cc.zip
Add slightly more documentation
Diffstat (limited to 'src/client/error.rs')
-rw-r--r--src/client/error.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/error.rs b/src/client/error.rs
index 1eaa2c6..30d3c27 100644
--- a/src/client/error.rs
+++ b/src/client/error.rs
@@ -57,6 +57,11 @@ pub enum Error {
/// When attempting to delete a number of days' worth of messages that is
/// not allowed.
DeleteMessageDaysAmount(u8),
+ /// When there is an error from Discord for a specific action, such as
+ /// [`ErrorCode::EditByOtherAuthor`]. This is a friendlier representation of
+ /// the numerical error codes Discord provides.
+ ///
+ /// [`ErrorCode::EditByOtherAuthor`]: rest/enum.ErrorCode.html#variant.EditByOtherAuthor
ErrorCode(ErrorCode),
/// When there was an error retrieving the gateway URI from the REST API.
Gateway,
@@ -67,6 +72,7 @@ pub enum Error {
/// [`GuildId`]: ../model/struct.GuildId.html
/// [`Cache`]: ../ext/cache/struct.Cache.html
GuildNotFound,
+ /// An indicator that an unknown opcode was received from the gateway.
InvalidOpCode,
/// When attempting to perform an action which is only available to user
/// accounts.
@@ -123,6 +129,8 @@ pub enum Error {
///
/// [`Context::edit_role`]: struct.Context.html#method.edit_role
RecordNotFound,
+ /// When a shard has completely failed to reboot after resume and/or
+ /// reconnect attempts.
ShardBootFailure,
/// When the shard being retrieved from within the Client could not be
/// found after being inserted into the Client's internal vector of