ErrorMessage Procedure

Gets a user-readable description of the last error to be thrown. Use this function in a catch block to get a message suitable for display to the user.
Declaration
function ErrorMessage() as String

Return value

String — The message of the last error to be thrown.

Example

Code
try
throw 5, "hello"
catch
print ErrorCode()
print ErrorMessage()
end try
Output
5
hello