Exception_ProductName()

Examples


The Exception_ProductName() function returns a string containing the name of the product that threw the current exception.

Syntax

Exception_ProductName({product_ID})

Parameters

product_ID – An optional integer containing the ID of a product.

Return value

A string containing the name of a product.

Comments

Use the product_ID parameter with this function when you know the product ID, but need a string containing the name of the product.

If you include the product_ID parameter, you can use this function anywhere in your code. If you don’t include the product_ID parameter, you can use this function only in a catch or else block of a try...end try statement.


Documentation Feedback