botrs 0.13.0

A Rust QQ Bot framework based on QQ Guild Bot API
Documentation
//! Error types for the BotRS library.
//!
//! This module defines all the error types that can occur when using the BotRS framework.

#![allow(non_upper_case_globals)]

mod bot_error;
mod codes;
mod http;
mod sdk;

/// A specialized Result type for BotRS operations.
pub type Result<T> = std::result::Result<T, BotError>;

pub use bot_error::{BotError, IntoBotError};
pub use codes::*;
pub(crate) use http::http_error_from_status;
pub use sdk::SdkError;
pub(crate) use sdk::{invalid_session_error, sdk_error, sdk_error_from_error, session_limit_error};

#[cfg(test)]
mod tests;