Removed flash specific parts of the error class to sync it up with the JS version