1
2
3
4
5
6
7
8
9
10
11
12
13
//ref: https://paystack.com/docs/api/errors

#[derive(thiserror::Error, Debug)]
pub enum AuthError {
    #[error("Your public key must be set")]
    NoPublicKey,
}

#[derive(thiserror::Error, Debug)]
pub enum ResponseError {
    #[error("Paystack Error: {0}")]
    PayStackError(String),
}