pass error and stack dump to ErrorPageHandler