Exemplo n.º 1
0
 /**
  * Create a new XmlStorageException object.
  *
  * @param string $message A human-readable message describing the exception.
  * @param integer $code An error code.
  * @param \Exception $previous An optional previous exception which is the cause of this one.
  * @param array $errors An array of errors (stdClass) as generated by libxml_get_errors().
  */
 public function __construct($message, $code = 0, $previous = null, LibXmlErrorCollection $errors = null)
 {
     parent::__construct($message, $code, $previous);
     if (empty($errors)) {
         $errors = new LibXmlErrorCollection();
     }
     $this->setErrors($errors);
 }
Exemplo n.º 2
0
 /**
  * Create a new PhpStorageException object.
  *
  * @param string $message A human-readable message.
  * @param integer $code An error code.
  * @param Exception $previous A previously thrown and catched exception.
  */
 public function __construct($message, $code = 0, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }