ErrorHandler: pass exception by ref, fix for WARNING