Enum bigml::Error [−][src]
#[non_exhaustive]
pub enum Error {
CouldNotAccessUrl {
url: Url,
error: Box<Error>,
},
CouldNotGetOutput {
name: String,
error: Box<Error>,
},
CouldNotParseUrlWithDomain {
domain: String,
error: Box<ParseError>,
},
CouldNotReadFile {
path: PathBuf,
error: Box<Error>,
},
OutputNotAvailable,
PaymentRequired {
url: Url,
body: String,
},
Timeout,
UnexpectedHttpStatus {
url: Url,
status: StatusCode,
body: String,
},
WaitFailed {
id: String,
message: String,
},
WrongResourceType {
expected: &'static str,
found: String,
},
Other {
error: Error,
},
}
Expand description
A BigML-related error.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
We could not access the specified URL.
WARNING: Do not construct this directly, but use
Error::could_not_access_url
to handle various URL sanitization and
security issues.
We could not get an output value from a WhizzML script.
We could not parse the specified URL.
WARNING: This takes a domain, not the full URL that we couldn’t parse, because we want to be careful to exclude credentials from error messages, and we can’t remove credentials from a URL we can’t parse.
Fields of CouldNotParseUrlWithDomain
domain: String
error: Box<ParseError>
We could not read a file.
We could not access an output value of a WhizzML script.
BigML says that payment is required for this request, perhaps because we have hit plan limits.
A request timed out.
We received an unexpected HTTP status code.
Fields of UnexpectedHttpStatus
We tried to create a BigML resource, but we failed. Display a dashboard URL to make it easy to look up the actual error.
Fields of WaitFailed
We found a type mismatch deserializing a BigML resource ID.
Another kind of error occurred.
Fields of Other
error: Error
Implementations
Is this error likely to be temporary?
Return the original bigml::Error
that caused this error, without any
wrapper errors.
Trait Implementations
Convert an Error
to either WaitStatus::FailedTemporarily
or
WaitStatus::FailedPermanently
depending on Error::might_be_temporary
.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more