Add error handling for over sso seat limits

This commit is contained in:
Grant Limberg 2022-05-11 19:43:29 -07:00
parent 7e46c83592
commit aee9521c91
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
4 changed files with 48 additions and 16 deletions

View file

@ -21,3 +21,17 @@ pub enum ZeroIDCError
#[error(transparent)]
ParseError(#[from] url::ParseError),
}
#[derive(Error, Debug)]
#[error("SSO Exchange Error: {message:}")]
pub struct SSOExchangeError {
message: String,
}
impl SSOExchangeError {
pub fn new(message: String) -> Self {
SSOExchangeError{
message
}
}
}