py_rs/export/
error.rs

1/// An error which may occur when exporting a type
2#[derive(thiserror::Error, Debug)]
3pub enum ExportError {
4    #[error("this type cannot be exported")]
5    CannotBeExported(&'static str),
6    #[cfg(feature = "format")]
7    #[error("an error occurred while formatting the generated typescript output")]
8    Formatting(String),
9    #[error("an error occurred while performing IO")]
10    Io(#[from] std::io::Error),
11    #[error("the environment variable CARGO_MANIFEST_DIR is not set")]
12    ManifestDirNotSet,
13    #[error("an error occurred while writing to a formatted buffer")]
14    Fmt(#[from] std::fmt::Error),
15}