Example #1
0
 /**
  * MDB2_Schema_Error constructor.
  *
  * @param mixed $code      error code, or string with error message.
  * @param int   $mode      what 'error mode' to operate in
  * @param int   $level     what error level to use for $mode & PEAR_ERROR_TRIGGER
  * @param mixed $debuginfo additional debug info, such as the last query
  *
  * @access  public
  */
 function MDB2_Schema_Error($code = MDB2_SCHEMA_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = null)
 {
     $this->PEAR_Error('MDB2_Schema Error: ' . MDB2_Schema::errorMessage($code), $code, $mode, $level, $debuginfo);
 }
Example #2
0
 /**
  * MDB2_Schema_Error constructor.
  *
  * @param mixed     error code, or string with error message.
  * @param int       what 'error mode' to operate in
  * @param int       what error level to use for $mode & PEAR_ERROR_TRIGGER
  * @param mixed     additional debug info, such as the last query
  * @access  public
  */
 function __construct($code = MDB2_SCHEMA_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = null)
 {
     parent::__construct('MDB2_Schema Error: ' . MDB2_Schema::errorMessage($code), $code, $mode, $level, $debuginfo);
 }