-
Notifications
You must be signed in to change notification settings - Fork 7
/
ErrorMessages.ts
30 lines (30 loc) · 2.06 KB
/
ErrorMessages.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export enum ERROR_MESSAGES {
UNKNOWN_PROVIDER = 'Unknown provider type',
ENS_TYPE_NOT_SUPPORTED = 'ENS type not supported',
WALLET_PROVIDER_NOT_SUPPORTED = 'Wallet provider must be a supported value',
NON_ETH_SIGN_SIGNATURE = 'Signature is not eth_sign verifiable',
ORG_WITH_APPS = 'You are not able to remove organization with registered apps',
ORG_WITH_ROLES = 'You are not able to remove organization with registered roles',
APP_WITH_ROLES = 'You are not able to remove application with registered roles',
METAMASK_PROVIDER_NOT_DETECTED = 'Metamask provider not detected',
METAMASK_ACCOUNT_NOT_PROVIDED = 'Metamask account not provided',
ROLE_PREREQUISITES_NOT_MET = "Enrolment subject doesn't have required roles",
ROLE_NOT_EXISTS = 'Role you want to enroll to does not exists',
CAN_NOT_UPDATE_NOT_CONTROLLED_DOCUMENT = 'Can not update not controlled document',
CAN_NOT_UPDATE_DOCUMENT_PROPERTIES_INVALID_OR_MISSING = 'Cannot update document. Properties invalid or missing: ',
ONCHAIN_ROLE_VERSION_NOT_SPECIFIED = 'On-chain role version not specified',
WITHDRAWAL_WAS_NOT_REQUESTED = 'Stake withdrawal was not requested',
STAKE_WAS_NOT_PUT = 'Stake was not put',
INSUFFICIENT_BALANCE = 'Signer has insufficient balance',
NOT_AUTHORIZED_TO_CHANGE_DOMAIN = 'Not authorized to change domain',
ERROR_IN_AZURE_PROVIDER = 'Error in Azure Provider',
JWT_ALGORITHM_NOT_SUPPORTED = 'Jwt algorithm not supported',
CLAIM_WAS_NOT_ISSUED = 'Claim was not issued',
PUBLISH_NOT_ISSUED_CLAIM = 'Claim to publish has not been issued',
CLAIM_TYPE_REQUIRED_FOR_ON_CHAIN_REGISTRATION = 'claimType required for on-chain registration',
TOKEN_REQUIRED_FOR_OFF_CHAIN_REGISTRATION = 'token required for off-chain registration',
ENS_OWNER_NOT_VALID_ADDRESS = 'Provided owner is not a valid address. Owner of ENS domain must be an address',
IS_ETH_SIGNER_NOT_SET = 'Can not determine if signer is conformant with eth_sign specification',
SIGN_TYPED_DATA_NOT_SUPPORTED = 'Sign typed data not supported',
CLAIM_TYPE_MISSING = 'Claim type is required for On-chain registration',
}