[FEATURE] New `@OnError()` decorator
Closed this issue ยท 3 comments
hakimio commented
Description
Once a new version of @cap-js/cds-types
is released and we get a new srv.on('error')
method overload, it would be nice to implement @OnError()
handler.
Suggested solution
@UnboundActions()
class UnboundActionsHandler {
@OnError()
onError(error: Error, request: Request) {
// TODO: implement me
}
}
hakimio commented
Thank you, Daniel ๐