ics721_types/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug, PartialEq)]
4pub enum Ics721Error {
5 #[error("empty class ID")]
6 EmptyClassId {},
7
8 #[error("must transfer at least one token")]
9 NoTokens {},
10
11 #[error("optional fields may not be empty if provided")]
12 EmptyOptional {},
13
14 #[error("tokenIds, tokenUris, and tokenData must have the same length")]
15 TokenInfoLenMissmatch {},
16}