ScriptError needs to extend Exeption to be raised