Copy the static $errorPriorityMap to a scoped variable with the same name and use it within the error/exception handler