Any JavaScript exceptions occurring within JSNI methods are wrapped as this
class when caught in Java code. The wrapping does not occur until the
exception passes out of JSNI into Java. Before that, the thrown object
remains a native JavaScript exception object, and can be caught in JSNI as
normal.