api:throw
Version 25.3.9411
Version 25.3.9411
api:throw
Use the api:throw keyword to raise an error (exception) from within a script.
Parameters
- code: A mandatory string value used to identify the source or meaning of the exception.
- desc[ription]: An optional parameter that specifies a short message describing the error condition.
- details: An optional parameter that can specify additional data to help diagnose the error condition.
Control Attributes
None
Example
This example explicitly defines both the error code and description:
<api:throw code="myerror" desc="thedescription" />