error.rs 727 B

1234567891011121314151617181920212223242526
  1. //! Errors
  2. use crate::NodeType;
  3. use anyhow::Result;
  4. use semver::Version;
  5. use skip_ratchet::PreviousErr;
  6. use thiserror::Error;
  7. //--------------------------------------------------------------------------------------------------
  8. // Type Definitions
  9. //--------------------------------------------------------------------------------------------------
  10. #[derive(Debug, Error)]
  11. pub enum HamtError {
  12. #[error("Hashnibbles cursor has exceeded HashOutput length")]
  13. CursorOutOfBounds,
  14. #[error("Cannot canonicalize a link pointer to a node with zero pointer")]
  15. NonCanonicalizablePointer,
  16. #[error("Values pointer expected")]
  17. ValuesPointerExpected,
  18. #[error("Key does not exist in HAMT")]
  19. KeyNotFound,
  20. }