docx_reader/types/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Error, Debug)]
pub enum TypeError {
	#[error("Failed to convert str to enum.")]
	FromStrError,
	#[error("Failed to convert str. This is because {0} is unsupported")]
	Unsupported(String),
	#[error("Unknown error.")]
	Unknown,
}