Behat


Behat/Behat/Exception/UndefinedException.php



namespace Behat\Behat\Exception;

/*
 * This file is part of the Behat.
 * (c) Konstantin Kudryashov 
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Undefined exception.
 *
 * @author Konstantin Kudryashov 
 */
class UndefinedException extends BehaviorException
{
    protected $text;

    /**
     * Initialize undefined exception.
     *
     * @param string $text step text
     */
    public function __construct($text)
    {
        $this->text = $text;
        parent::__construct(sprintf('Undefined step "%s"', $text));
    }
}

Behat