Skip to content

DBException::__construct

Mo McRoberts edited this page Aug 7, 2011 · 2 revisions

The [[DBException]] constructor is responsible for initialising a new database exception object.

Synopsis

uses('db');

public function [[DBException]]::__construct($errCode, $errMsg, $query)

Description

The constructor will automatically populate the [[DBException]] instance's properties and generate a complete exception message which is passed along with $errCode to Exception::__construct.

Parameters

Name Direction Type Description
$errCode
  </td>
</tr>
<tr>
  <td><code>$errMsg</code>
  <td><i></i></td>
  <td></td>
  <td>

  </td>
</tr>
<tr>
  <td><code>$query</code>
  <td><i></i></td>
  <td></td>
  <td>

  </td>
</tr>

Clone this wiki locally