ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::Error Class Reference

An Error instance pairs an error code with string description providing more details about the error. More...

#include <error.h>

Collaboration diagram for Common::Error:

List of all members.

Public Member Functions

 Error (ErrorCode code=kUnknownError)
 Construct a new Error with the specified error code and the default error message.
 Error (ErrorCode code, const String &extra)
 Construct a new Error with the specified error code and an augmented error message.
const StringgetDesc () const
 Get the description of this error.
ErrorCode getCode () const
 Get the error code of this error.

Protected Attributes

ErrorCode _code
String _desc

Detailed Description

An Error instance pairs an error code with string description providing more details about the error.

For every error code, a default description is provided, but it is possible to optionally augment that description with extra information when creating a new Error instance.

Definition at line 77 of file error.h.


Constructor & Destructor Documentation

Common::Error::Error ( ErrorCode  code = kUnknownError  ) 

Construct a new Error with the specified error code and the default error message.

Definition at line 81 of file error.cpp.

Common::Error::Error ( ErrorCode  code,
const String extra 
)

Construct a new Error with the specified error code and an augmented error message.

Specifically, the provided extra text is suitably appended to the default message.

Definition at line 85 of file error.cpp.


Member Function Documentation

ErrorCode Common::Error::getCode (  )  const [inline]

Get the error code of this error.

Definition at line 103 of file error.h.

const String& Common::Error::getDesc (  )  const [inline]

Get the description of this error.

Definition at line 98 of file error.h.


Member Data Documentation

Definition at line 79 of file error.h.

Definition at line 80 of file error.h.


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


Generated on Sat Jul 20 2019 05:02:38 for ResidualVM by doxygen 1.7.1
curved edge   curved edge