Files
core/contracts/libraries/constants/Errors.sol
vicnaum c6a4ec5d6a misc: refactor - WIP
Co-authored-by: Alan <donosonaumczuk@gmail.com>
2024-02-01 18:52:20 +01:00

55 lines
1.3 KiB
Solidity

// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
library Errors {
error CannotInitImplementation();
error Initialized();
error SignatureExpired();
error SignatureInvalid();
error InvalidOwner();
error NotOwnerOrApproved();
error NotHub();
error TokenDoesNotExist();
error NotGovernance();
error NotGovernanceOrEmergencyAdmin();
error EmergencyAdminCanOnlyPauseFurther();
error NotProfileOwner();
error PublicationDoesNotExist();
error CallerNotFollowNFT();
error CallerNotCollectNFT(); // Legacy
error ArrayMismatch();
error NotWhitelisted();
error NotRegistered();
error InvalidParameter();
error ExecutorInvalid();
error Blocked();
error SelfBlock();
error NotFollowing();
error SelfFollow();
error InvalidReferrer();
error InvalidPointedPub();
error NonERC721ReceiverImplementer();
error AlreadyEnabled();
// Module Errors
error InitParamsInvalid();
error ActionNotAllowed();
error CollectNotAllowed(); // Used in LegacyCollectLib (pending deprecation)
// MultiState Errors
error Paused();
error PublishingPaused();
// Profile Guardian Errors
error GuardianEnabled();
error NotEOA();
error DisablingAlreadyTriggered();
// Migration Errors
error NotMigrationAdmin();
error NotAllowed();
}