A comprehensive set of consensus error codes were introduced in Dash Platform v0.21. The tables below follow the codes found in code.js of the consensus source code.
The error codes are organized into four categories that each span 1000 error codes. Each category may be further divided into sub-categories. The four categories and their error code ranges are:
Category | Code range | Description |
---|
Basic | 1000 - 1999 | Errors encountered while validating structure and data |
Signature | 2000 - 2999 | Errors encountered while validating identity existence and state transition signature |
Fee | 3000 - 3999 | Errors encountered while validating an identity's balance is sufficient to pay fees |
State | 4000 - 4999 | Errors encounter while validating state transitions against the platform state |
Basic errors occupy the codes ranging from 1000 to 1999. This range is divided into several categories for clarity.
Code | Error |
---|
1000 | ProtocolVersionParsingError |
1001 | SerializedObjectParsingError |
Code | Error |
---|
1002 | UnsupportedProtocolVersionError |
1003 | IncompatibleProtocolVersionError |
1004 | JsonSchemaCompilationError |
1005 | JsonSchemaError |
1006 | InvalidIdentifierError |
Code | Error |
---|
1007 | DataContractMaxDepthExceedError |
1008 | DuplicateIndexError |
1009 | IncompatibleRe2PatternError |
1010 | InvalidCompoundIndexError |
1011 | InvalidDataContractIdError |
1012 | InvalidIndexedPropertyConstraintError |
1013 | InvalidIndexPropertyTypeError |
1014 | InvalidJsonSchemaRefError |
1015 | SystemPropertyIndexAlreadyPresentError |
1016 | UndefinedIndexPropertyError |
1017 | UniqueIndicesLimitReachedError |
Code | Error |
---|
1018 | DataContractNotPresentError |
1019 | DuplicateDocumentTransitionsWithIdsError |
1020 | DuplicateDocumentTransitionsWithIndicesError |
1021 | InconsistentCompoundIndexDataError |
1022 | InvalidDocumentTransitionActionError |
1023 | InvalidDocumentTransitionIdError |
1024 | InvalidDocumentTypeError |
1025 | MissingDataContractIdError |
1026 | MissingDocumentTransitionActionError |
1027 | MissingDocumentTransitionTypeError |
1028 | MissingDocumentTypeError |
Code | Error |
---|
1029 | DuplicatedIdentityPublicKeyError |
1030 | DuplicatedIdentityPublicKeyIdError |
1031 | IdentityAssetLockProofLockedTransactionMismatchError |
1032 | IdentityAssetLockTransactionIsNotFoundError |
1033 | IdentityAssetLockTransactionOutPointAlreadyExistsError |
1034 | IdentityAssetLockTransactionOutputNotFoundError |
1035 | InvalidAssetLockProofCoreChainHeightError |
1036 | InvalidAssetLockProofTransactionHeightError |
1037 | InvalidAssetLockTransactionOutputReturnSize |
1038 | InvalidIdentityAssetLockTransactionError |
1039 | InvalidIdentityAssetLockTransactionOutputError |
1040 | InvalidIdentityPublicKeyDataError |
1041 | InvalidInstantAssetLockProofError |
1042 | InvalidInstantAssetLockProofSignatureError |
Code | Error |
---|
1043 | InvalidStateTransitionTypeError |
1044 | MissingStateTransitionTypeError |
1045 | StateTransitionMaxSizeExceededError |
Signature errors occupy the codes ranging from 2000 to 2999.
Code | Error |
---|
2000 | IdentityNotFoundError |
2001 | InvalidIdentityPublicKeyTypeError |
2002 | InvalidStateTransitionSignatureError |
2003 | MissingPublicKeyError |
Fee errors occupy the codes ranging from 3000 to 3999.
Code | Error | |
---|
3000 | BalanceIsNotEnoughError | Current credits balance is insufficient to pay fee |
State errors occupy the codes ranging from 4000 to 4999. This range is divided into several categories for clarity.
Code | Error |
---|
4000 | DataContractAlreadyPresentError |
4001 | DataTriggerConditionError |
4002 | DataTriggerExecutionError |
4003 | DataTriggerInvalidResultError |
Code | Error |
---|
4004 | DocumentAlreadyPresentError |
4005 | DocumentNotFoundError |
4006 | DocumentOwnerIdMismatchError |
4007 | DocumentTimestampsMismatchError |
4008 | DocumentTimestampWindowViolationError |
4009 | DuplicateUniqueIndexError |
4010 | InvalidDocumentRevisionError |
Code | Error |
---|
4011 | IdentityAlreadyExistsError |
4012 | IdentityPublicKeyAlreadyExistsError |