Function Invocations
Last updated
Was this helpful?
Last updated
Was this helpful?
These events occur when a function is about to be executed or has finished executing.
- This event is triggered before a function is invoked.
- This event is triggered after a function has been invoked.
- This event is triggered when an exception occurs during the function invocation.
This event is triggered before a function is invoked. It allows you to perform actions or modifications before the function execution begins.
arguments
ArgumentsScope
The arguments scope
context
IBoxContext
The BoxLang Request context
function
Function
The UDF/Function/Closure/Lambda invoked
name
String
The name of the function invoked
This event is triggered after a function has been invoked. It allows you to perform actions or modifications after the function execution has completed.
arguments
ArgumentsScope
The arguments scope
context
IBoxContext
The BoxLang Request context
function
Function
The UDF/Function/Closure/Lambda invoked
name
String
The name of the function invoked
result
Any
The result of the function call
This event is triggered when an exception occurs during the function invocation. It allows you to handle exceptions gracefully.
arguments
ArgumentsScope
The arguments scope
context
IBoxContext
The BoxLang Request context
function
Function
The UDF/Function/Closure/Lambda invoked
name
String
The name of the function invoked
exception
Exception
The exception that occurred during the function invocation