The Exception_ProductName() function returns a string containing the name of the product that threw the current exception.
Exception_ProductName({product_ID})
• product_ID – An optional integer containing the ID of a product.
A string containing the name of a product.
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.