private function getException($format, $args = [])
    {
        /** @var FormatterHelper $formatter */
        $formatter = $this->getHelperSet()->get('formatter');
        return new \InvalidArgumentException($formatter->formatBlock(vsprintf($format, $args), 'bg=red', true));
    }
private function getException($format, $args = [])
    {
        /** @var FormatterHelper $formatter */
        $formatter = $this->getHelperSet()->get('formatter');
        return new \InvalidArgumentException($formatter->formatBlock(vsprintf($format, $args), 'bg=red', true));
    }
private function getException ( $ format , $ args = [ ] ) { /** @var FormatterHelper $formatter */ $ formatter = $ this -> getHelperSet ( ) -> get ( 'formatter' ) ; return new \ InvalidArgumentException ( $ formatter -> formatBlock ( vsprintf ( $ format , $ args ) , 'bg=red' , true ) ) ; }
Returns formatted exception

@param string $format
@param array  $args

@return \InvalidArgumentException
Returns formatted exception