respk 0.1.2

Manage resource files using a fast, custom open format designed especially for use in games.
Documentation
//! Error definitions.
use rusqlite;


/// Enum of possible errors from ResPK.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Error {
    /// An error occurred while compressing a resource.
    CompressionError,

    /// An error occurred while decompressing a resource.
    DecompressionError,

    /// A resource was not found for the given path name.
    ResourceNotFound,

    /// An internal bug or error within librespk.
    InternalError,
}

impl From<rusqlite::Error> for Error {
    fn from(_: rusqlite::Error) -> Error {
        Error::InternalError
    }
}