Skip to main content
Cadet | Tier 2
March 23, 2023
Solved

Error Handler: Throw - Configuring custom error types

  • March 23, 2023
  • 12 replies
  • 612 views

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).

 

Best answer by Sam 5592

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. 

12 replies

Cadet | Tier 2
February 11, 2025

@Micah.Smith Hi,

 

Is there an official stance from AA on whether this type of custom exception implementation is supported with the package SDK? If so, is there any official documentation regarding this please?

Thanks!

Adam

Micah.Smith
Automation Anywhere Team
Automation Anywhere Team
February 12, 2025

@Micah.Smith Hi,

 

Is there an official stance from AA on whether this type of custom exception implementation is supported with the package SDK? If so, is there any official documentation regarding this please?

Thanks!

Adam

There’s documentation for creating custom bot command exceptions here:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/developer/create-custom-exceptions.html

We do not have any provision to throw any custom error and catch particular error