ApiComponent::hasError PHP Method

hasError() public method

Is the current controller an Error controller?
public hasError ( ) : boolean
return boolean
    public function hasError()
    {
        return get_class($this->controller) == 'CakeErrorController';
    }