/**
  * Constructor
  * @param array $start_backtrace
  */
 function __construct($debuginfo = null, $transaction = null)
 {
     $this->transaction = $transaction;
     // TODO: MDL-20625 use the info from $transaction for debugging purposes
     parent::__construct('dmltransactionexception', NULL, $debuginfo);
 }
Exemple #2
0
 function __construct($error, $sql = null, array $params = null)
 {
     $this->error = $error;
     $this->sql = $sql;
     $this->params = $params;
     $errorinfo = s($error) . '<br /><br />' . s($sql) . '<br />[' . s(var_export($params, true)) . ']';
     parent::__construct('dmlwriteexception', NULL, $errorinfo);
 }