. */ namespace Doctrine\Common\Cli; /** * 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 \Doctrine\Common\CommonException { 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."); } public static function cannotOverrideNamespace($namespace) { return new self("Namespace '$namespace' cannot be overriden. Call overrideNamespace() directly."); } }