jsn / ServiceNow, simplified.
AustraliaREFERENCE GUIDE

AutomationException - Global

On this page

AutomationException- Global

The AutomationException script include provides generic exception wrapping for automation.

Include this in automation code to implement error handling.

Parent Topic:Server API reference

AutomationException - getMessage()

Retrieves the error message.

Name Type Description None     Type Description String The error message
var ae = new AutomationException("This is an error message");
gs.print(ae.getMessage());

Output:

This is an error message

Keep exploring.

Find another answer, or bring this documentation into your own tools.