// Code generated by "stringer -type=ErrorReason"; DO NOT EDIT.

package types

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[ERROR_REASON_UNSPECIFIED-0]
	_ = x[ERROR_REASON_INTERNAL-1]
	_ = x[ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_TYPE-2]
	_ = x[ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_VALUE_FORMAT-3]
	_ = x[ERROR_REASON_INVALID_ISSUER-4]
	_ = x[ERROR_REASON_ISSUER_NOT_REGISTERED-5]
	_ = x[ERROR_REASON_INVALID_VERIFIABLE_CREDENTIAL-6]
	_ = x[ERROR_REASON_IDP_REQUIRED-7]
	_ = x[ERROR_REASON_INVALID_PROOF-8]
	_ = x[ERROR_REASON_UNSUPPORTED_PROOF-9]
	_ = x[ERROR_REASON_RESOLVER_METADATA_NOT_FOUND-10]
	_ = x[ERROR_REASON_UNKNOWN_IDP-11]
	_ = x[ERROR_REASON_ID_ALREADY_REGISTERED-12]
	_ = x[ERROR_REASON_VERIFIABLE_CREDENTIAL_REVOKED-13]
}

const _ErrorReason_name = "ERROR_REASON_UNSPECIFIEDERROR_REASON_INTERNALERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_TYPEERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_VALUE_FORMATERROR_REASON_INVALID_ISSUERERROR_REASON_ISSUER_NOT_REGISTEREDERROR_REASON_INVALID_VERIFIABLE_CREDENTIALERROR_REASON_IDP_REQUIREDERROR_REASON_INVALID_PROOFERROR_REASON_UNSUPPORTED_PROOFERROR_REASON_RESOLVER_METADATA_NOT_FOUNDERROR_REASON_UNKNOWN_IDPERROR_REASON_ID_ALREADY_REGISTEREDERROR_REASON_VERIFIABLE_CREDENTIAL_REVOKED"

var _ErrorReason_index = [...]uint16{0, 24, 45, 90, 143, 170, 204, 246, 271, 297, 327, 367, 391, 425, 467}

func (i ErrorReason) String() string {
	if i < 0 || i >= ErrorReason(len(_ErrorReason_index)-1) {
		return "ErrorReason(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _ErrorReason_name[_ErrorReason_index[i]:_ErrorReason_index[i+1]]
}
