home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / DB / DbError.cc < prev    next >
C/C++ Source or Header  |  2000-06-10  |  1KB  |  36 lines

  1. //
  2. // $Id: DbError.cc,v 1.4 2000/06/10 00:20:02 sergey Exp $
  3. //
  4.  
  5. #include "DbError.h"
  6. #include "Util/Error.h"
  7.  
  8.  
  9. namespace DB
  10. {
  11.     void DbError::openError(const char* file, int line, const char* databaseName, int error)
  12.     {
  13.         Util::Error::errorMessage(false, "%s,%d: Fail to open database '%s' (%d)", file, line, databaseName, error);
  14.     }
  15.  
  16.     void DbError::closeError(const char* file, int line, int error)
  17.     {
  18.         Util::Error::errorMessage(false, "%s,%d: Fail to close database (%d)", file, line, error);
  19.     }
  20.  
  21.     void DbError::readAppInfoError(const char* file, int line, int error)
  22.     {
  23.         Util::Error::errorMessage(false, "%s,%d: Fail to read AppInfo block (%d)", file, line, error);
  24.     }
  25.  
  26.     void DbError::readRecordError(const char* file, int line, int error)
  27.     {
  28.         Util::Error::errorMessage(false, "%s,%d: Fail to read record (%d)", file, line, error);
  29.     }
  30.  
  31.     void DbError::getRecordInfoError(const char* file, int line, int error)
  32.     {
  33.         Util::Error::errorMessage(false, "%s,%d: Fail to obtain record attributes (%d)", file, line, error);
  34.     }
  35. }
  36.