/**
  * 
  * @param string $directory Directory path. Message will be built from it
  * @param int $code
  * @param \Exception $previous Exception that caused this exception, if any
  */
 public function __construct($directory, $code = 0, \Exception $previous = null)
 {
     parent::__construct("Invalid directory : {$directory}", $code, $previous);
 }
 /**
  * @inheritDoc
  */
 public function __construct($message, $parameterName, Exception $previous = null)
 {
     $this->parameterName = (string) $parameterName;
     parent::__construct($message, 0, $previous);
 }
 /**
  * 
  * @param string $classname Class that was being used as template class. Will be used to build message.
  * @param int $code
  * @param \Exception $previous Exception that caused this exception, if any.
  */
 public function __construct($classname, $code = 0, \Exception $previous = null)
 {
     parent::__construct("Invalid class used : {$classname}", $code, $previous);
 }
 public function __construct($message = null, $key = null, $previous = null)
 {
     parent::__construct($message, 0, $previous);
     $this->key = $key;
 }
Esempio n. 5
0
 /**
  * Class constructor.
  *
  * @param string The error message.
  * @param int	The error code.
  */
 public function __construct($message = null, $code = 0)
 {
     parent::__construct($message, $code);
     $this->setName('ParseException');
 }
 /**
  * Exception constructor
  * @param string $action Action that was called. Will be used to generate message.
  * @param int $code
  * @param \Exception $previous Exception that caused this exception, if any
  */
 public function __construct($action, $code = 0, \Exception $previous = null)
 {
     parent::__construct("Undefined action {$action}", $code, $previous);
 }
 /**
  * 
  * @param string $classname Class that could not be found. Will be used to build message.
  * @param int $code
  * @param \Exception $previous Exception that caused this exception, if any.
  */
 public function __construct($classname, $code = 0, \Exception $previous = null)
 {
     parent::__construct("Class not found : {$classname}", $code, $previous);
 }