pub enum Error {
MissingProjectFile(PathBuf),
MissingProjectDirectory(PathBuf),
DeserializeYaml(Error),
UnknownProfile(String),
OpenThemeFile {
path: PathBuf,
err: Error,
},
OpenProjectFile {
path: PathBuf,
err: Error,
},
UrlParse(ParseError),
Io(Error),
}
Expand description
The error type for fallible configuration operations, namely parsing configuration files.
Variants§
MissingProjectFile(PathBuf)
Returned when the project file can’t be found.
MissingProjectDirectory(PathBuf)
Returned when the project directory can’t be determined.
DeserializeYaml(Error)
Returned when the configuration files are malformed.
UnknownProfile(String)
Returned when the requested profile doesn’t exist in the
futhorc.yaml
project file.
OpenThemeFile
Returned when there is a problem opening a theme file.
OpenProjectFile
Returned when there is a problem opening the project file.
UrlParse(ParseError)
Returned when there is a problem parsing or joining a URL.
Io(Error)
Returned for other I/O errors.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(err: ParseError) -> Error
fn from(err: ParseError) -> Error
Converts url::ParseError
into Error
. This allows us to use
the ?
operator on fallible config parsing operations.