1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2022 MASSA LABS <info@massa.net>

use displaydoc::Display;
use thiserror::Error;

#[non_exhaustive]
#[derive(Display, Error, Debug, Clone)]
/// Error generated by massa-hash crate
pub enum MassaHashError {
    /// parsing error : {0}
    ParsingError(String),

    /// Wrong prefix for hash: expected {0}, got {1}
    WrongPrefix(String, String),
}