/**
  * Constructor.
  *
  * @param int $position
  * @param string $name
  */
 public function __construct($position, $name)
 {
     parent::__construct(100 + $position, 'Required argument "' . $name . '".');
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param string $name field name
  */
 public function __construct($name)
 {
     parent::__construct(4, 'Field "' . $name . '" not found.', 'Internal server error.');
 }
Пример #3
0
 /**
  * Constructor.
  *
  * @param int $position
  * @param string $name
  * @param string $message
  */
 public function __construct($position, $name, $message)
 {
     parent::__construct(200 + $position, 'Invalid argument "' . $name . '": ' . $message);
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(311, 'Permission denied');
 }
Пример #5
0
 /**
  * Constructor.
  *
  * @param int $maxSize
  */
 public function __construct($maxSize)
 {
     parent::__construct(17, 'Max size for file is too large. Server limit: ' . $maxSize . '.');
 }
Пример #6
0
 /**
  * Constructor.
  *
  * @param string $mapperName
  */
 public function __construct($mapperName)
 {
     parent::__construct(4, 'Mapper "' . $mapperName . '" not found.', 'Internal server error.');
 }