
JavaScript::Error - Encapsulates errors thrown from JavaScript

The cause of the exception.
The name of the file that the caused the exception.
The line number in the file that caused the exception.
A stringification of the exception in the format $message at $line in $file

This class overloads stringification an will return the result from the method as_string.