Files
core/contracts/libraries/Errors.sol
2022-03-16 17:58:37 -03:00

47 lines
1.3 KiB
Solidity

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.10;
library Errors {
error CannotInitImplementation();
error Initialized();
error SignatureExpired();
error ZeroSpender();
error SignatureInvalid();
error NotOwnerOrApproved();
error NotHub();
error TokenDoesNotExist();
error NotGovernance();
error NotGovernanceOrEmergencyAdmin();
error CallerNotWhitelistedModule();
error CollectModuleNotWhitelisted();
error FollowModuleNotWhitelisted();
error ReferenceModuleNotWhitelisted();
error ProfileCreatorNotWhitelisted();
error NotProfileOwner();
error NotProfileOwnerOrDispatcher();
error PublicationDoesNotExist();
error HandleTaken();
error HandleLengthInvalid();
error HandleContainsInvalidCharacters();
error ProfileImageURILengthInvalid();
error CallerNotFollowNFT();
error CallerNotCollectNFT();
error BlockNumberInvalid();
error ArrayMismatch();
// Module Errors
error InitParamsInvalid();
error ZeroCurrency();
error CollectExpired();
error FollowInvalid();
error ModuleDataMismatch();
error FollowNotApproved();
error MintLimitExceeded();
error CollectNotAllowed();
// MultiState Errors
error Paused();
error PublishingPaused();
}