20 lines
409 B
Rust
20 lines
409 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("file already exists")]
|
|
FileAlreadyExists,
|
|
|
|
#[error("write file error - {0}")]
|
|
WriteFile(String),
|
|
|
|
#[error("base64 - {0}")]
|
|
Base64(String),
|
|
|
|
#[error("read dir error - {0}")]
|
|
ReadDir(String),
|
|
|
|
#[error("unknow error")]
|
|
UnknowError(String),
|
|
}
|