ScummVM API documentation
Bagel::CBofError Class Reference
Inheritance diagram for Bagel::CBofError:
Bagel::CBagCursor Bagel::CBagObject Bagel::CBofApp Bagel::CBofBitmap Bagel::CBofCursor Bagel::CBofFile Bagel::CBofPalette Bagel::CBofSound Bagel::CBofSprite Bagel::CBofText Bagel::CBofTextBox Bagel::CBofWindow

Public Member Functions

void reportError (ErrorCode errCode, const char *format,...)
 
bool errorOccurred () const
 
ErrorCode getErrorCode () const
 
void clearError ()
 

Static Public Member Functions

static void fatalError (ErrorCode errCode, const char *format,...)
 
static void initialize ()
 
static int getErrorCount ()
 

Protected Member Functions

virtual void bofMessageBox (const Common::String &content, const Common::String &title)
 

Protected Attributes

ErrorCode _errCode
 

Static Protected Attributes

static int _count
 

Member Function Documentation

◆ reportError()

void Bagel::CBofError::reportError ( ErrorCode  errCode,
const char *  format,
  ... 
)

Logs specified error to log file.

Remarks
Sets _errCode to specified error condition, and logs the error.
Parameters
errCodeError to report
formatA printf style format string
...Additional parameters to be formatted and inserted into the string

◆ fatalError()

static void Bagel::CBofError::fatalError ( ErrorCode  errCode,
const char *  format,
  ... 
)
static

Logs specified fatal error to log file and exit the game.

Parameters
errCodeError to report
formatA printf style format string
...Additional parameters to be formatted and inserted into the string

The documentation for this class was generated from the following file: