pub enum Error {
AuthorizationFailed,
InvalidAgentUrl(String),
UnableToParseResponse,
UrlDoesNotExist,
UnknownResponseStatusCode(String),
InternalServerError(u16, String),
UnreachableUrl,
HttpServiceUnavailable,
CommandNotAvailable(String),
UnableToParseOutValue(String),
InvalidOperator(String),
}Expand description
User-level errors that can be thrown at runtime
Variants§
AuthorizationFailed
The cloudagent did not allow the request without proper authorization
InvalidAgentUrl(String)
The specified environment does not exist inside the configuration file
UnableToParseResponse
The server gave a response that was not expected and therefore not deserializeable
UrlDoesNotExist
Provided url does not exist
UnknownResponseStatusCode(String)
The server supplied a status code which is not handled accordingly
InternalServerError(u16, String)
The server responded with a 5xx status code. Not our fault
UnreachableUrl
Supplied url is not reachable
Specific handle case for a 5xx status code which means that the cloudagent might be offline
CommandNotAvailable(String)
Subcommand is not available for this agent
UnableToParseOutValue(String)
Predicate structure is invalid
InvalidOperator(String)
Predicate used an invalid operator
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more