You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Create the AccountManagementError enum
Otherwise it forces dependant crates to add serde_urlencoded as a dependency just to be able to forward the error type. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
committed by
Quentin Gliech
parent
b342870db9
commit
d3d11594f3
@@ -64,6 +64,9 @@ pub enum Error {
|
||||
|
||||
/// An error occurred introspecting a token.
|
||||
Introspection(#[from] IntrospectionError),
|
||||
|
||||
/// An error occurred building the account management URL.
|
||||
AccountManagement(#[from] AccountManagementError),
|
||||
}
|
||||
|
||||
/// All possible errors when fetching provider metadata.
|
||||
@@ -703,3 +706,11 @@ pub enum CredentialsError {
|
||||
#[error(transparent)]
|
||||
Custom(BoxError),
|
||||
}
|
||||
|
||||
/// All errors that can occur when building the account management URL.
|
||||
#[derive(Debug, Error)]
|
||||
pub enum AccountManagementError {
|
||||
/// An error occurred serializing the parameters.
|
||||
#[error(transparent)]
|
||||
UrlEncoded(#[from] serde_urlencoded::ser::Error),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user