Ability for applications and extensions to create their own error handlers