Support arguments of exceptions to be risen
---
- class: API
chain: get_product
arguments:
- 1
actions:
- raise: API::NotFoundError
arguments:
- "Cannot find product by id: 1"
This would raise the following exception instance:
API::NotFoundError.new("Cannot find product by id: 1")