More flexibility for error handlers.