1use cosmwasm_std::StdError;
2use cw_utils::PaymentError;
3use thiserror::Error;
4use url::ParseError;
5
6#[derive(Error, Debug)]
7pub enum ContractError {
8 #[error("{0}")]
9 Std(#[from] StdError),
10
11 #[error("{0}")]
12 Payment(#[from] PaymentError),
13
14 #[error("{0}")]
15 Parse(#[from] ParseError),
16
17 #[error("{0}")]
18 Base(#[from] cw721_base::ContractError),
19
20 #[error("Unauthorized")]
21 Unauthorized {},
22
23 #[error("Unauthorized Owner Does Not Match Sender")]
24 UnauthorizedOwner {},
25
26 #[error("InvalidCreationFee")]
27 InvalidCreationFee {},
28
29 #[error("token_id already claimed")]
30 Claimed {},
31
32 #[error("Cannot set approval that is already expired")]
33 Expired {},
34
35 #[error("Approval not found for: {spender}")]
36 ApprovalNotFound { spender: String },
37
38 #[error("InvalidRoyalties: {0}")]
39 InvalidRoyalties(String),
40
41 #[error("Description too long")]
42 DescriptionTooLong {},
43
44 #[error("InvalidStartTradingTime")]
45 InvalidStartTradingTime {},
46
47 #[error("CollectionInfoFrozen")]
48 CollectionInfoFrozen {},
49
50 #[error("MinterNotFound")]
51 MinterNotFound {},
52
53 #[error("Ownership Update Error: {error}")]
54 OwnershipUpdateError { error: String },
55
56 #[error("Error while migrating: ({0}) ")]
57 MigrationError(String),
58}