Revert "Remove unneeded error class"
Revert "Remove unneeded error class"

This reverts commit 0178a4b75d0a20f87761e12636c25871252eb0d0.

Resovles #177.

NeilFraser/JS-Interpreter,NeilFraser/JS-Interpreter,NeilFraser/JS-Interpreter