errors.proto
path agntcy/identity/core/v1alpha1/errors.proto
package agntcy.identity.core.v1alpha1
Messages
ErrorInfo
Describes the cause of the error with structured details.
Name | Type | Description |
---|---|---|
reason | optional ErrorReason | The reason of the error, as defined by the ErrorReason enum. This is a constant unique value that helps identify the cause of the error. |
message | optional string | The message describing the error in a human-readable way. This field gives additional details about the error. |
Enums
ErrorReason
Represents the reason for an error, providing a unique constant value for the error.
Name | Number | Description |
---|---|---|
ERROR_REASON_UNSPECIFIED | 0 | ERROR_REASON_UNSPECIFIED indicates that no specific error reason has been specified. |
ERROR_REASON_INTERNAL | 1 | An internal error, this happens in case of unexpected condition or failure within the service |
ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_TYPE | 2 | The credential envelope type is invalid. For valid values refer to the enum CredentialEnvelopeType. |
ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_VALUE_FORMAT | 3 | The credential envelope value format does not correspond to the format specified in envelope_type. |
ERROR_REASON_INVALID_ISSUER | 4 | The issuer contains one or more invalid fields. |
ERROR_REASON_ISSUER_NOT_REGISTERED | 5 | The issuer is not registered in the Node. |
ERROR_REASON_INVALID_VERIFIABLE_CREDENTIAL | 6 | The Verifiable Credential is invalid, this can be related to either invalid format or unable to verify the Data Integrity proof. |
ERROR_REASON_IDP_REQUIRED | 7 | An issuer is required to have an external IdP |
ERROR_REASON_INVALID_PROOF | 8 | The proof is invalid |
ERROR_REASON_UNSUPPORTED_PROOF | 9 | The proof type is not supported |
ERROR_REASON_RESOLVER_METADATA_NOT_FOUND | 10 | Unable to resolve an ID to a ResolverMetadata |
ERROR_REASON_UNKNOWN_IDP | 11 | Unknown Identity Provider |
ERROR_REASON_ID_ALREADY_REGISTERED | 12 | The ID and Resolver Metadata are already registered in the system |