public function setDefaultRenderer($name)
    {
        if (!\array_key_exists($name, $this->renderers)) {
            throw new \InvalidArgumentException(sprintf('Cannot set default exception renderer "%s". It does not exist.', $name));
        }

        $this->defaultRenderer = $name;
    }
public function setDefaultRenderer($name)
    {
        if (!\array_key_exists($name, $this->renderers)) {
            throw new \InvalidArgumentException(sprintf('Cannot set default exception renderer "%s". It does not exist.', $name));
        }

        $this->defaultRenderer = $name;
    }
public function setDefaultRenderer ( $ name ) { if ( ! \ array_key_exists ( $ name , $ this -> renderers ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Cannot set default exception renderer "%s". It does not exist.' , $ name ) ) ; } $ this -> defaultRenderer = $ name ; }
Sets the default renderer name.

@param string $name

@throws \InvalidArgumentException
Sets the default renderer name .