1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Copyright 2020-2021 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 //! Big integer errors. use thiserror::Error; /// Errors related to big integers. #[derive(Clone, Debug, Error)] pub enum Error { /// Error when converting and binary representation exceeds ternary range. #[error("Binary representation exceeds ternary range.")] BinaryExceedsTernaryRange, /// Error when converting and ternary representation exceeds binary range. #[error("Ternary representation exceeds binary range.")] TernaryExceedsBinaryRange, }