public function isHandlingCoreError($env, $error = 0)
    {
        $this->swapArgs($env, $error, $this->running_env);
        return isset($this->errors[$env]) && (($this->errors[$env] & $error) === $error);
    }
public function isHandlingCoreError($env, $error = 0)
    {
        $this->swapArgs($env, $error, $this->running_env);
        return isset($this->errors[$env]) && (($this->errors[$env] & $error) === $error);
    }
public function isHandlingCoreError ( $ env , $ error = 0 ) { $ this -> swapArgs ( $ env , $ error , $ this -> running_env ) ; return isset ( $ this -> errors [ $ env ] ) && ( ( $ this -> errors [ $ env ] & $ error ) === $ error ) ; }
Returns whether errors of the given type are being handled

Returns true when the given error -- one of the E_ERROR constants -- is one of
the errors being handled. Otherwise false is returned.

Uses the currently running environment when none is given.

Examples:
```php
$is_handled = $handler->isHandlingCoreError(E_WARNING);

$is_handled = $handler->isHandlingCoreError("live", E_WARNING);
```

@param  string|int $env   The environment to check
@param  string|int $error The core error to check

@return bool
Returns whether errors of the given type are being handled