ibm_watson/auth/
errors.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum AuthenticationError {
6 #[error("Parameter validation failed. Required parameters are missing or parameter values are invalid.")]
7 ParameterValidationFailed,
9 #[error("The incoming request did not contain a valid authentication information")]
10 InvalidAPIKey,
12 #[error(
13 "The incoming request is valid but the user is not allowed to perform the requested action."
14 )]
15 NotAllowed,
17 #[error("Internal Server error. Response if unexpected error situation happened.")]
18 ServerError,
20 #[error("{0}")]
21 ConnectionError(String),
23}