otl_normalizer/
error.rs

1use std::path::PathBuf;
2
3use write_fonts::{read::ReadError, types::Tag};
4
5#[derive(Debug, thiserror::Error)]
6pub enum Error {
7    #[error("could not read path '{path}': '{inner}'")]
8    Load {
9        path: PathBuf,
10        inner: std::io::Error,
11    },
12    #[error("could not create file '{path}': '{inner}'")]
13    FileWrite {
14        path: PathBuf,
15        inner: std::io::Error,
16    },
17    #[error("write error: '{0}'")]
18    Write(#[from] std::io::Error),
19    #[error("could not read font data: '{0}")]
20    FontRead(#[from] ReadError),
21    #[error("missing table '{0}'")]
22    MissingTable(Tag),
23}