Skip to main content

schema_reverse_engineer/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum SchemaReverseEngineerError {
5    #[error("Database connection error: {0}")]
6    Connection(String),
7
8    #[error("Database introspection error: {0}")]
9    Introspection(String),
10
11    #[error("Unsupported column type: {0}")]
12    UnsupportedColumnType(String),
13
14    #[error("IO error: {0}")]
15    Io(#[from] std::io::Error),
16}