error.rs 475 B

123456789101112131415
  1. use anchor_lang::prelude::*;
  2. #[error_code]
  3. pub enum WorldError {
  4. #[msg("Invalid authority for instruction")]
  5. InvalidAuthority,
  6. #[msg("The provided world account does not match the expected PDA.")]
  7. WorldAccountMismatch,
  8. #[msg("Exceed the maximum number of authorities.")]
  9. TooManyAuthorities,
  10. #[msg("The provided authority not found")]
  11. AuthorityNotFound,
  12. #[msg("The system is not approved in this world instance")]
  13. SystemNotApproved,
  14. }