graph_error/
internal.rs

1#[derive(Debug, thiserror::Error)]
2pub enum GraphRsError {
3    #[error("Download directory does not exist: {dir}")]
4    DownloadDirNoExists { dir: String },
5    #[error(
6        "Download file already exists: {name}. \
7         If you want to over write this file then use overwrite_existing_file(true)"
8    )]
9    DownloadFileExists { name: String },
10    #[error("Could not determine file name or the file name exceeded 255 characters")]
11    DownloadFileName,
12    #[error("File name has invalid characters. Must be UTF-8")]
13    FileNameInvalidUTF8,
14    #[error("Missing or invalid: Error: {msg}")]
15    InvalidOrMissing { msg: String },
16    #[error("Invalid file extension. Requires {requires} but found {found}")]
17    InvalidFileExtension { requires: String, found: String },
18}