1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
pub mod aicensor; pub mod client; pub mod noproxy; use thiserror::Error; #[derive(Debug, Error)] pub enum OkaeriSdkError { #[error("url '{url}' is invalid: {source:?}")] InvalidUrl { url: String, source: url::ParseError, }, #[error("cannot parse '{from}' to int")] InvalidInt { from: String }, #[error("{group}: {message}")] ResponseError { group: String, message: String }, #[error("cannot parse to json: '{body}'")] ResponseParseError { body: String }, }