public function offsetGet($index)
    {
        if (!$this->offsetExists($index)) {
            throw new Exception\FormatNotFoundException('Format ' . $index . ' is not known');
        }

        return parent::offsetGet($index);
    }
public function offsetGet($index)
    {
        if (!$this->offsetExists($index)) {
            throw new Exception\FormatNotFoundException('Format ' . $index . ' is not known');
        }

        return parent::offsetGet($index);
    }
public function offsetGet ( $ index ) { if ( ! $ this -> offsetExists ( $ index ) ) { throw new Exception \ FormatNotFoundException ( 'Format ' . $ index . ' is not known' ) ; } return parent :: offsetGet ( $ index ) ; }
Finds a format by the given name or throws an exception if that index is not found.

@param string $index

@throws Exception\FormatNotFoundException if the given format index was not found.

@return Format
Finds a format by the given name or throws an exception if that index is not found .