. */ namespace Doctrine\Common\Cli; use Doctrine\Common\DoctrineException; /** * CLI Exception class * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ * @author Benjamin Eberlei * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class CliException extends DoctrineException { public static function namespaceDoesNotExist($namespaceName, $namespacePath = '') { return new self( "Namespace '{$namespaceName}' does not exist" . (( ! empty($namespacePath)) ? " in '{$namespacePath}'." : '.') ); } public static function taskDoesNotExist($taskName, $namespacePath) { return new self("Task '{$taskName}' does not exist in '{$namespacePath}'."); } public static function cannotOverrideTask($taskName) { return new self("Task '{$taskName}' cannot be overriden."); } }