public function isHandlingCoreError($env, $error = 0)
    {
        $this->swapArgs($env, $error, $this->running_env);
        return isset($this->errors[$env]) && (($this->errors[$env] & $error) === $error);
    }