WIP: Implemented CustomErrorHandler, that can resolve exceptions during rendering