Exemplo n.º 1
0
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $invalidIndex
  * @param null|\Exception $previousException
  */
 public function __construct($invalidIndex, \Exception $previousException = null)
 {
     parent::__construct(sprintf("The index `%s` is invalid.", $invalidIndex), 0, $previousException);
 }
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $identifier the identifier which is locked
  * @param null|\Exception $previousException
  */
 public function __construct($identifier, \Exception $previousException = null)
 {
     parent::__construct(sprintf("The identifier `%s` is locked and can not be modified.", $identifier), 0, $previousException);
 }
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $namespace the namespace trying to register
  * @param null|\Exception $previousException
  */
 public function __construct($namespace, \Exception $previousException = null)
 {
     parent::__construct(sprintf("The namespace`%s` is already registered.", $namespace), 0, $previousException);
 }
Exemplo n.º 4
0
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $identifier the identifier which can not be locked
  * @param null|\Exception $previousException
  */
 public function __construct($identifier, \Exception $previousException = null)
 {
     parent::__construct(sprintf("Unable to lock the identifier `%s`.", $identifier), 0, $previousException);
 }
Exemplo n.º 5
0
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param null|\Exception $previousException
  */
 public function __construct(\Exception $previousException = null)
 {
     parent::__construct("The Registry is on read only mode any modifications are not allowed.", 0, $previousException);
 }
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $identifier the identifier which is not registered.
  * @param null|\Exception $previousException
  */
 public function __construct($identifier, \Exception $previousException = null)
 {
     parent::__construct(sprintf("The identifier `%s` is not registered.", $identifier), 0, $previousException);
 }
Exemplo n.º 7
0
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $invalidType
  * @param null|\Exception $previousException
  */
 public function __construct($invalidType, \Exception $previousException = null)
 {
     parent::__construct(sprintf("The type `%s` is invalid.", $invalidType), 0, $previousException);
 }
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param null|\Exception $previousException
  */
 public function __construct(\Exception $previousException = null)
 {
     parent::__construct("The collection is empty, unable to retrieve an element.", 0, $previousException);
 }
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param string $directory the directory which does not exists
  * @param null|\Exception $previousException
  */
 public function __construct($directory, \Exception $previousException = null)
 {
     parent::__construct(sprintf("Directory `%s` does not exists or is not readable.", $directory), 0, $previousException);
 }
 /**
  * Class constructor.
  * Calls the parent Exception constructor.
  * @param mixed $value
  * @param null|\Exception $previousException
  */
 public function __construct($value, \Exception $previousException = null)
 {
     $type = is_object($value) ? get_class($value) : gettype($value);
     parent::__construct(sprintf("The value of type `%s` is invalid.", $type), 0, $previousException);
 }