upb-uc4 / lagom-core

Repository for the micro service backend using lagom.
Apache License 2.0
6 stars 0 forks source link

Change Error handling in Lagom #442

Open dhelmert opened 3 years ago

dhelmert commented 3 years ago

Currently, all HyperledgerExceptions are mapped to InternalServerErrors in Lagom. However, HyperledgerExceptions describe Exceptions thrown by the network. For non-critical errors (e.g. validation on peers), this causes problems.

Therefore, implement a differentiation between the different HyperledgerExceptions.