You are here

public function AbstractRenderer::ignoreExceptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/AbstractRenderer.php \Zend\Feed\Writer\Renderer\AbstractRenderer::ignoreExceptions()

Indicate whether or not to ignore exceptions

Parameters

bool $bool:

Return value

AbstractRenderer

Throws

Writer\Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Renderer/AbstractRenderer.php, line 147

Class

AbstractRenderer

Namespace

Zend\Feed\Writer\Renderer

Code

public function ignoreExceptions($bool = true) {
  if (!is_bool($bool)) {
    throw new Writer\Exception\InvalidArgumentException('Invalid parameter: $bool. Should be TRUE or FALSE (defaults to TRUE if null)');
  }
  $this->ignoreExceptions = $bool;
  return $this;
}