pub enum DataError {
Show 39 variants
RequestError {
what: &'static str,
address: String,
err: Error,
},
RequestFailure {
address: String,
code: StatusCode,
message: Option<String>,
},
ResponseTextError {
address: String,
err: Error,
},
FileReadError {
what: &'static str,
path: PathBuf,
err: Error,
},
CertsDirError {
err: CertsError,
},
IdentityFileError {
path: PathBuf,
err: Error,
},
CertificateError {
path: PathBuf,
err: Error,
},
DirNotADirError {
what: &'static str,
path: PathBuf,
},
DirRemoveError {
what: &'static str,
path: PathBuf,
err: Error,
},
DirCreateError {
what: &'static str,
path: PathBuf,
err: Error,
},
TempDirError {
err: Error,
},
DatasetDirError {
name: String,
err: UtilError,
},
ProxyCreateError {
address: String,
err: Error,
},
ClientCreateError {
err: Error,
},
DownloadStreamError {
address: String,
err: Error,
},
TarCreateError {
path: PathBuf,
err: Error,
},
TarWriteError {
path: PathBuf,
err: Error,
},
TarExtractError {
err: Error,
},
DatasetsError {
err: UtilError,
},
LocalDataIndexError {
err: Error,
},
AssetFileError {
path: PathBuf,
err: AssetInfoError,
},
FileCanonicalizeError {
path: PathBuf,
err: Error,
},
FileNotFoundError {
path: PathBuf,
},
FileNotAFileError {
path: PathBuf,
},
DatasetDirCreateError {
err: UtilError,
},
DuplicateDatasetError {
name: String,
},
DataCopyError {
err: Error,
},
DataInfoWriteError {
err: DataInfoError,
},
NoEqualsInKeyPair {
raw: String,
},
InstanceInfoError {
err: InstanceError,
},
ActiveInstanceReadError {
err: InstanceError,
},
InstancePathError {
name: String,
err: InstanceError,
},
RemoteDataIndexError {
address: String,
err: ApiError,
},
DataSelectError {
err: Error,
},
UnknownLocation {
name: String,
},
UnknownDataset {
name: String,
},
UnavailableDataset {
name: String,
locs: Vec<String>,
},
ConfirmationError {
err: Error,
},
RemoveError {
path: PathBuf,
err: Error,
},
}
Expand description
Collects errors during the build subcommand
Variants§
RequestError
Failed to sent the GET-request to fetch the dfelegate.
RequestFailure
The request returned a non-2xx status code.
ResponseTextError
Failed to get the request body properly.
FileReadError
Failed to open/read a given file.
CertsDirError
Failed to get the directory of the certificates.
Fields
err: CertsError
IdentityFileError
Failed to parse an identity file.
CertificateError
Failed to parse a certificate.
DirNotADirError
A directory was not a directory but a file.
DirRemoveError
A directory could not be removed.
DirCreateError
A directory could not be created.
TempDirError
Failed to create a temporary directory.
DatasetDirError
Failed to create the dataset directory.
ProxyCreateError
Failed to create a new reqwest proxy
ClientCreateError
Failed to create a new reqwest client
DownloadStreamError
Failed to reach the next chunk of data.
TarCreateError
Failed to create the file to which we write the download stream.
TarWriteError
Failed to write to the file where we write the download stream.
TarExtractError
Failed to extract the downloaded tar.
DatasetsError
Failed to get the datasets folder
LocalDataIndexError
Failed to fetch the local data index.
AssetFileError
Failed to load the given AssetInfo file.
FileCanonicalizeError
Could not canonicalize the given (relative) path.
FileNotFoundError
The given file does not exist
FileNotAFileError
The given file is not a file
DatasetDirCreateError
Failed to create the dataset’s directory.
DuplicateDatasetError
A dataset with the given name already exists.
DataCopyError
Failed to copy the data directory over.
DataInfoWriteError
Failed to write the DataInfo.
Fields
err: DataInfoError
NoEqualsInKeyPair
The given “keypair” was not a keypair at all
InstanceInfoError
Failed to fetch the login file.
Fields
err: InstanceError
ActiveInstanceReadError
Failed to get the path of the active instance.
Fields
err: InstanceError
InstancePathError
Failed to get the active instance.
RemoteDataIndexError
Failed to create the remote data index.
DataSelectError
Failed to select the download location in case there are multiple.
UnknownLocation
We encountered a location we did not know
UnknownDataset
The given dataset was unknown to us.
the given dataset was known but not locally available.
ConfirmationError
Failed to ask the user for consent before removing the dataset.
RemoveError
Failed to remove the dataset’s directory
Trait Implementations§
source§impl Error for DataError
impl Error for DataError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for DataError
impl !RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl !UnwindSafe for DataError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
source§impl<T> ErrorTrace for T
impl<T> ErrorTrace for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request