The differences of TMLScript error objects are caused by the fact that TMLScript is mainly dealing with Java APIs under the hood and therefor needs to be able to cope with the possibility of Java exceptions which should be handleable from TMLScript.
By catch blocks as the parameter given in the brackets. For example: catch(e)
|Allowed in script types
|Properties and methods
A standard error handling scheme in TMLScript. This script manually tests if the error contains a Java exception and logs it to the applog if so:
A simpler way to deal with the fact that TMLScript errors may contain Java exceptions is using the method this.logException(), which treats exceptions automatically: