api-error 0.1.0

HTTP API error types and utilities for Rust web services
1
2
3
4
5
6
7
8
use api_error::ApiError;

#[derive(Debug, thiserror::Error, ApiError)]
#[error("some error")]
#[api_error(transparent)]
struct MyError(String, i32);

fn main() {}