fapolicy_rules/error.rs
1/*
2 * Copyright Concurrent Technologies Corporation 2021
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 */
8
9use std::io;
10
11use thiserror::Error;
12
13#[derive(Error, Debug)]
14pub enum Error {
15 #[error("File IO Error: {0}")]
16 FileIoError(#[from] io::Error),
17
18 #[error("Malformed marker @ {0}: {1}")]
19 MalformedFileMarker(usize, String),
20}