veramo icon indicating copy to clipboard operation
veramo copied to clipboard

Identifiable Errors and Error Messages when verifying JWT, VC, VP

Open rado0x54 opened this issue 3 years ago • 2 comments

As an integrator, I would like Veramo to raise identifiable errors with matching english error-messages, so that I can present a more detailed error message to an end user within the integrating application.

Acceptance Criteria:

  • There exists identifiable errors for various verification errors
  • Error have a unique identifier that can be matched by a parent application
  • Error classes have a representative error message that describes the error in english language
  • Errors are raised from within Veramo (and not returned).
  • Errors need to be presented via OpenAPI (e.g. 4XX with formatted JSON error identifier)
  • Current Model (reuse in similar fashion): (Error Messages are identified by unique String identifier e.g. DID_NOT_FOUND. Error Message starts with message that is easily checked.)
  • Log error identifiers within Veramo (specifically the message handlers)

rado0x54 avatar Jun 25 '21 10:06 rado0x54

Can you clarify what you mean by typed errors and how they would be used?

mirceanis avatar Jun 25 '21 11:06 mirceanis

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 14 '21 07:09 stale[bot]