Add error type for Observers

This commit is contained in:
bitfl0wer 2023-04-27 22:38:57 +02:00
parent 0711c9beba
commit caafb9a620
1 changed files with 6 additions and 0 deletions

View File

@ -19,3 +19,9 @@ custom_error! {
InvalidFormBodyError{error_type: String, error:String} = "The server responded with: {error_type}: {error}", InvalidFormBodyError{error_type: String, error:String} = "The server responded with: {error_type}: {error}",
RateLimited = "Ratelimited.", RateLimited = "Ratelimited.",
} }
custom_error! {
#[derive(PartialEq, Eq)]
pub ObserverError
AlreadySubscribedError = "Each event can only be subscribed to once."
}