Example #1
0
 /**
  * Constructor
  *
  * @param String $value The file system path that caused the error
  * @param String $message The error message
  * @param Integer $code The error code
  */
 public function __construct($path, $message = NULL, $code = 0)
 {
     parent::__construct($message, $code);
     $path = trim((string) $path);
     if (!empty($path)) {
         $this->addData("Path", $path);
     }
 }
Example #2
0
 /**
  * Constructor...
  *
  * @param String $query The query that caused the error
  * @param String $message The error message
  * @param Integer $code The error code
  * @param Mixed $link The database Link associated with this error
  */
 public function __construct($message = NULL, $code = 0, $link = null)
 {
     parent::__construct($message, $code);
     if ($link instanceof \r8\iface\DB\Identified) {
         $this->addData('Link', $link->getIdentifier());
     } else {
         $this->addData('Link', \r8\getDump($link));
     }
 }
Example #3
0
 /**
  * Constructor
  *
  * @param String $value The value of the data that caused the error
  * @param String $label The name of the data
  * @param String $message The error message
  * @param Integer $code The error code
  */
 public function __construct($value, $label = NULL, $message = NULL, $code = 0)
 {
     parent::__construct($message, $code);
     $this->addData("Index Label", (string) $label);
     $this->addData("Value", \r8\getDump($value));
 }
Example #4
0
 /**
  * Constructor...
  *
  * @param String $file The file that caused the headers to be sent
  * @param Integer $line The line that caused the headers to be sent
  */
 public function __construct($file, $line)
 {
     parent::__construct("HTTP Headers have already been sent");
     $this->addData("Output Started in File", (string) $file);
     $this->addData("Output Started on Line", (int) $line);
 }
Example #5
0
 /**
  * Constructor
  *
  * @param String $extension The PHP extension related to this error
  * @param String $message The error message
  * @param Integer $code The error code
  */
 public function __construct($extension, $message = NULL, $code = 0)
 {
     parent::__construct($message, $code);
     $this->addData("Extension", (string) $extension);
 }
Example #6
0
 /**
  * Constructor
  *
  * @param String $config The configuration label that caused the error
  * @param String $message The error message
  * @param Integer $code The error code
  */
 public function __construct($config = NULL, $message = NULL, $code = 0)
 {
     parent::__construct($message, $code);
     $this->addData("Config", (string) $config);
 }
Example #7
0
 /**
  * Constructor
  *
  * @param String $variable The name of the variable that caused the error
  * @param String $message The error message
  * @param Integer $code The error code
  */
 public function __construct($variable, $message = NULL, $code = 0)
 {
     parent::__construct($message, $code);
     $this->addData("Variable Name", (string) $variable);
 }
Example #8
0
 /**
  * Returns the data list for the current instance
  *
  * @return Array
  */
 public function getData()
 {
     return array("Arg Offset" => $this->getArgOffset(), "Arg Value" => \r8\getDump($this->getArgData())) + parent::getData();
 }
Example #9
0
 /**
  * Constructor
  *
  * @param String $value The value of the data that caused the error
  * @param String $label The name of the data
  * @param String $message The error message
  * @param Integer $code The error code
  */
 public function __construct($value, $label = NULL, $message = NULL, $code = 0)
 {
     parent::__construct($message, $code);
     $label = (string) $label;
     $this->addData(\r8\isEmpty($label) ? "Value" : $label, \r8\getDump($value));
 }
Example #10
0
 /**
  * Constructor...
  *
  * @param String $path The path that the finder was looking for
  * @param \r8\Finder\Tracker $tracker The details of the Find atemp
  */
 public function __construct($path, \r8\Finder\Tracker $tracker)
 {
     parent::__construct("Finder was unable to locate file", 0);
     $this->addData("Search Path", (string) $path);
     $this->addData("Tested Paths", $tracker->getTested());
 }