Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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.

NameTypeDescription
None  
TypeDescription
StringThe error message
var ae = new AutomationException("This is an error message");
gs.print(ae.getMessage());

Output:

This is an error message