AutomationException - Global

concept australia Updated Sep 10, 2026 1 min read c_AutomationException.md
Raw file servicenow.com

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
JavaScript
var ae = new AutomationException("This is an error message");gs.print(ae.getMessage());

Output:

Text
This is an error message
Search documentation
Search document titles and file paths on the australia branch