rust_sql_organizer/file_combiner/error.rs
1use std::fmt::Display;
2#[derive(Debug)]
3pub enum Error {
4 IoError(std::io::Error),
5}
6
7impl From<std::io::Error> for Error {
8 fn from(value: std::io::Error) -> Self {
9 Self::IoError(value)
10 }
11}
12
13impl Display for Error {
14 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15 match self {
16 Self::IoError(e) => e.fmt(f),
17 }
18 }
19}
20
21impl std::error::Error for Error {}