Add error type for Observers
This commit is contained in:
parent
656acad356
commit
8f97b48a09
|
@ -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."
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue