summaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-09 20:34:03 +0200
committerHampusM <hampus@hampusmat.com>2022-09-09 20:34:03 +0200
commitc71ff70ffec328935b9ca4492e313b4a480d7ec7 (patch)
tree431ddb1c805787d1cec46384be98ffca1adccf56 /src/errors
parentdb42316544c65951c7781357ec5aaba1b9abb8ab (diff)
fix: handle get auth token errors
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/client.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/errors/client.rs b/src/errors/client.rs
index c3397e3..6eb7e68 100644
--- a/src/errors/client.rs
+++ b/src/errors/client.rs
@@ -18,6 +18,16 @@ pub enum DeezerClientError
#[error("Received a error response from the Deezer API")]
ReceivedErrorResponse(DeezerError),
+ /// Received a authentication error response from the Deezer.
+ #[error("Received a authentication error response from the Deezer")]
+ ReceivedAuthErrorResponse(String),
+
+ /// Received a authentication error response from the Deezer that's not valid UTF-8.
+ #[error(
+ "Received a authentication error response from the Deezer that's not valid UTF-8"
+ )]
+ AuthErrorResponseNotUTF8,
+
/// Failed to build API endpoint URI.
#[error("Failed to build API endpoint URI")]
BuildAPIEndpointURIFailed,