exception
- Last UpdatedApr 24, 2024
- 1 minute read
This topic is about the exception type.
Syntax
throw new ExceptionA("MessaggioA");
throw new Exception(“ExceptionA“,"MessaggioA");
Description
XRS Script Language has full support for handling exceptions including those raised by the framework. At the moment, it is possible to catch only standard exceptions.
The exception object includes the parameters type, message, name, and line, which can be used to identify the exception, the file and line that caused it, and display the associated message.
Exceptions can be used in combination with exception-handling statements to cope with any unexpected or exceptional conditions that arise when a program is running while ensuring a better flow control.