function __construct($targettype, $targetname, $offendingtype, $offendingname, $debuginfo = null) { $a = new stdClass(); $a->targettype = $targettype; $a->targetname = $targetname; $a->offendingtype = $offendingtype; $a->offendingname = $offendingname; parent::__construct('ddldependencyerror', $a, $debuginfo); }
function __construct($error, $sql = null) { $this->error = $error; $this->sql = $sql; $errorinfo = s($error) . '<br /><br />' . s($sql); parent::__construct('ddlexecuteerror', NULL, $errorinfo); }