oak_toml/errors/mod.rs
1#[derive(Copy, Clone, Debug)]
2pub enum ParseError {
3 InvalidRequest,
4}
5
6impl ParseError {
7 pub fn new() -> Self {
8 Self::InvalidRequest
9 }
10}
11
12pub struct Fail {
13 pub error: ParseError,
14}
15
16impl Fail {
17 pub fn new(error: ParseError) -> Self {
18 Self { error }
19 }
20}
21
22pub struct PexError {}
23
24pub enum PexErrorKind {
25 SyntaxError {},
26}