class VException : public std exception

Vocal specific exception

Inheritance:


Public Methods

string getDescription()
Returns the predefined name and user supplied msg
int getError()
Returns the error code supplied with the exception
VEnvVar(const mstring& variable, const mstring& defvalue)
Constructor to create EnvVariable object
VEnvVar(const mstring& variable)
Constructor to create EnvVariable object

Protected Fields

int errorCode
user supplied error code (optional)
string fileName
file in which exception occurred
int lineNumber
line number at which exception occurred
string message
user supplied msg

Protected Methods

virtual string getName()
Returns the predefined name of the exception
void log()
Logs the exception including the error code (if any) as well as the filename and line number where the exception occurred
VException( const string& msg, const string& file, const int line, const int error = 0)
Creates an exception object, should be called with a descriptive msg, the filename and line number where the exception occured, and optionally an error code asscociated with the exception Note, the log() method handles the logging format, so blank spaces, newlines, etc

Documentation

Vocal specific exception
VEnvVar(const mstring& variable, const mstring& defvalue)
Constructor to create EnvVariable object.If variable is not set , defvalue is taken.

VEnvVar(const mstring& variable)
Constructor to create EnvVariable object.If variable is not set , marked as not set;

VException( const string& msg, const string& file, const int line, const int error = 0)
Creates an exception object, should be called with a descriptive msg, the filename and line number where the exception occured, and optionally an error code asscociated with the exception Note, the log() method handles the logging format, so blank spaces, newlines, etc. should NOT be included in the parameters to the constructor.

virtual string getName()
Returns the predefined name of the exception

void log()
Logs the exception including the error code (if any) as well as the filename and line number where the exception occurred. The logging is formatted as follows: [:] at :

string getDescription()
Returns the predefined name and user supplied msg

int getError()
Returns the error code supplied with the exception

string message
user supplied msg

string fileName
file in which exception occurred

int lineNumber
line number at which exception occurred

int errorCode
user supplied error code (optional)


Direct child classes:
VThreadException
VNetworkException
VMissingDataException
VIoException
VBadDataException
VExceptionMemory
VConditionException
DataException

alphabetic index hierarchy of classes


generated by doc++