/**
  * Creates a new exception object.
  * The $type parameter can either be
  * {@link ezcConsoleArgumentAlreadyRegisteredException::NAMED} or
  * {@link ezcConsoleArgumentAlreadyRegisteredException::ORDERED}, indicating
  * if the name of the parameter or its place are already taken.
  * 
  * @param int $offset Offset of the already reagistered argument.
  * @param int $type   Type of the offset.
  * @return void
  */
 public function __construct($offset, $type)
 {
     switch ($type) {
         case self::NAMED:
             $message = "Argument with name '{$offset}' already registered.";
             break;
         case self::ORDERED:
             $message = "Argument at position '{$offset}' already registered.";
             break;
     }
     parent::__construct($message);
 }
Esempio n. 2
0
 /**
  * Creates a new exception object. 
  * 
  * @param string $name The affected option name.
  * @return void
  */
 public function __construct($name)
 {
     parent::__construct("The option name '{$name}' is invalid.");
 }
Esempio n. 3
0
 /**
  * Creates a new exception object. 
  * 
  * @param string $name Name of the already existing option.
  * @return void
  */
 public function __construct()
 {
     parent::__construct("User send EOF.");
 }
 /**
  * Creates a new exception object.
  * 
  * @return void
  */
 public function __construct()
 {
     parent::__construct('Cannot restore position, if no position has been stored before.');
 }
Esempio n. 5
0
 /**
  * Creates a new exception object.
  * 
  * @param string $target Affected target.
  * @return void
  */
 public function __construct($target)
 {
     parent::__construct("The target '{$target}' could not be opened for writing.");
 }
 /**
  * Creates a new exception object. 
  * 
  * @param string $reason The reason for that the string was invalid.
  * @return void
  */
 public function __construct($reason)
 {
     parent::__construct("The provided option defintion string was not well formed. " . $reason);
 }
Esempio n. 7
0
 /**
  * Creates a new exception object. 
  * 
  * @param string $name The name of the option which is not an alias.
  * @return void
  */
 public function __construct($name)
 {
     parent::__construct("The option name '{$name}' refers to a real parameter, not to an alias.");
 }
Esempio n. 8
0
 /**
  * Creates a new exception object. 
  * 
  * @param string $name Name of the affected option.
  * @return void
  */
 public function __construct($name)
 {
     parent::__construct("An option with the name '{$name}' is already registered.");
 }
 /**
  * Creates a new exception object.
  * 
  * @return void
  */
 public function __construct()
 {
     parent::__construct("The dialog did not receive a valid result, yet.");
 }