4 #ifndef DMLITE_CPP_STATUS_H
5 #define DMLITE_CPP_STATUS_H
7 #include "dmlite/common/config.h"
21 DmStatus(
int code,
const std::string &
string);
22 DmStatus(
int code,
const char* fmt, va_list args);
23 DmStatus(
int code,
const char* fmt, ...);
30 int code()
const throw();
31 const char*
what()
const throw();
33 bool ok()
const throw();
40 void setMessage(
const char* fmt, va_list args);
44 #endif // DMLITE_CPP_STATUS_H
const char * what() const
Base exception class.
Definition: exceptions.h:17
void setMessage(const char *fmt, va_list args)
int errorCode_
Definition: status.h:37
DmException exception() const
Exceptions used by the API.
std::string errorMsg_
Definition: status.h:38