metaverse_inventory 0.3.0

inventory handling for the open metaverse
Documentation
use std::time::SystemTimeError;

use awc::error::{PayloadError, SendRequestError};
use metaverse_messages::errors::ParseError;
use sqlx::migrate::MigrateError;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum InventoryError {
    #[error("Parse Error: {0}")]
    ParseError(#[from] uuid::Error),

    #[error("Migration Error: {0}")]
    MigrationError(#[from] MigrateError),

    #[error("Sqlx Error: {0}")]
    SqlxError(#[from] sqlx::Error),

    #[error("XML error: {0}")]
    Xml(#[from] quick_xml::Error),

    #[error("UTF8 error: {0}")]
    Utf8(#[from] std::string::FromUtf8Error),

    #[error("IO error : {0}")]
    IO(#[from] std::io::Error),

    #[error("Anyhow error: {0}")]
    Anyhow(#[from] anyhow::Error),

    #[error("UTF-8 decode error: {0}")]
    StrUtf8(#[from] std::str::Utf8Error),

    #[error("Inventory Error: {0}")]
    Error(String),

    #[error("Messges error: {0}")]
    Messages(#[from] ParseError),

    #[error("RequestError: {0}")]
    RequestError(#[from] SendRequestError),

    #[error("PayloadError: {0}")]
    PayloadError(#[from] PayloadError),

    #[error("SerdeError: {0}")]
    SerdeError(#[from] serde_json::Error),

    #[error("System time error {0}")]
    SystemTimeError(#[from] SystemTimeError),
}