Error Code Reference
The program defines the following custom errors.
| Error | Meaning |
|---|---|
NameTooLong | Name exceeds the allowed length |
NameEmpty | Name is empty |
JsonTooLong | JSON data exceeds the allowed length |
OwnerMismatch | Caller is not the owner |
RenterMismatch | Caller is not the renter |
AlreadyLeased | Name is already leased |
RentTooLong | Rental period is too long |
SaleDisabled | Sale is disabled |
RentDisabled | Rental is disabled |
YearsTooSmall | Registration period is too small |
DaysTooSmall | Rental period is too small |
Unauthorized | Caller is not authorized |
InvalidTreasury | Invalid treasury account |
InvalidTreasuryConfig | Invalid treasury configuration |
InvalidMetaConfig | Invalid metadata configuration |
InvalidJsonFormat | Invalid JSON format |
MintMismatch | Token mint does not match |
MintMismatchPayToken | Payment token mint does not match |
TokenAccountOwnerMismatch | Token account owner does not match |
FeeReceiverMismatch | Fee receiver does not match |
NameCloserMismatch | Name closer does not match |
InvalidCharacter | Name contains an invalid character |
NameInUse | Name is already in use |
NameExpired | Name has expired |
NameNotExpired | Name has not expired |
RentExpired | Rental period has expired |
InvalidTokenMint | Invalid token mint |
InvalidTokenAccount | Invalid token account |
InvalidTokenProgram | Invalid token program |
MissingEcoSeparator | Ecosystem separator is missing |
InvalidEntityName | Invalid entity name |
MaxEntityLevelIsFour | Maximum entity level is 4 |
ConfigPdaNotFound | Configuration PDA was not found |
DeserializationError | Account deserialization failed |
InvalidFeeReceiver | Invalid fee receiver |
InvalidMetaPda | Invalid metadata PDA |
ParentNotCreated | Parent entity has not been created |
MissingParentMetaAccount | Parent metadata account is missing |
InvalidReceiverPda | Invalid receiver PDA |
InvalidFees | Invalid fee configuration |
InvalidEnabled | Invalid enabled value |