1 2 3 4 5 6 7 8 9 10 11 12 13
use failure::Fail;
#[derive(Debug, Fail)]
pub enum InternalError {
#[fail(display = "incorrect input length")]
BytesLengthError,
#[fail(display = "invalid hashcash")]
InvalidHashcash,
#[fail(display = "malformed identity")]
MalformedIdentity,
#[fail(display = "reserved address")]
ReservedAddress,
}