Error extension for ECMAScript