I’m looking to generate distinct error categories via the “Error Handler - Throw” action (e.g. Business Exceptions vs System Exceptions). “Error handler - Throw” seems to be built for this use case - there’s a dropdown where we can select error type. However I can’t find any options in the product or on the docs pages about how to add/manage error types. There’s only one option available originally (AllErrors).
Page 1 / 1
I am looking for the same thing. @Micah.Smith Do you know if there is a way to create custom exception types? I looked in the package SDK and couldn't find anything there either. It would be awesome if there was a way to do this, especially when it comes to handling business exceptions.
Hello, Is does any one got an answer for that? I am looking at it as well...
Anyone have an answer?
So I found the way to do this. In the package.template file add the following
Sorta useless though since you can’t actually have multiple catch branches…. at least that is the way it appears to me. Would love for someone from AA support to actually confirm this.
Has anyone found an answer for this yet?
For custom error you need to use throw action. Within throw action you can put your custom business exception message and it will be caught by catch block( Currently AA support generic error handler) . It works fine. I hope it helps. You can have multiple try catch block and within try catch block you throw error.