lowRISC / manticore

Apache License 2.0
16 stars 13 forks source link

[protocol] Add a richer API for declaring message-specific errors #128

Closed mcy closed 3 years ago

mcy commented 3 years ago

What it says in the title: handlers now use proper errors instead of hand-rolling Cerberus errors.

Right now all the Manticore-specific errors use the "vendor specified" error format, but hopefully this PR can be used as a model for better error handling in Cerberus in the future.