llamaedge 0.0.7

A library for interacting with LlamaEdge API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types.

use thiserror::Error;

/// Error types for the Llama Core library.
#[derive(Error, Debug)]
pub enum LlamaEdgeError {
    /// Errors in General operation.
    #[error("{0}")]
    Operation(String),
    /// Errors in URL parsing.
    #[error("Invalid URL: {0}")]
    UrlParse(#[from] url::ParseError),
    /// Errors in invalid argument.
    #[error("Invalid argument: {0}")]
    InvalidArgument(String),
}