function errorMessage($value) { return MDB::errorMessage($value); }
/** * Map a MDB error code to a textual message. This is actually * just a wrapper for MDB::errorMessage(). * * @param integer $dbcode the MDB error code * @return string the corresponding error message, of FALSE * if the error code was unknown * @access public */ function errorMessage($dbcode) { return MDB::errorMessage($this->errorcode_map[$dbcode]); }
/** * MDB_Error constructor. * * @param mixed $code MDB error code, or string with error message. * @param integer $mode what 'error mode' to operate in * @param integer $level what error level to use for * $mode & PEAR_ERROR_TRIGGER * @param smixed $debuginfo additional debug info, such as the last query */ function MDB_Error($code = MDB_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = NULL) { if (is_int($code)) { $this->PEAR_Error('MDB Error: ' . MDB::errorMessage($code), $code, $mode, $level, $debuginfo); } else { $this->PEAR_Error("MDB Error: {$code}", MDB_ERROR, $mode, $level, $debuginfo); } }