Index Workbook Worksheet Format

Class Error


Class for error handling. It contains error state and use in exceptions handling.

enum Error::Err
This enum describes the error types. It is used by Error() constructor.
ConstantDescription
ERR_WORKSHEET_EXISTworksheet already exist
ERR_INVALIDROWCOLrow or column value are invalid
ERR_UNRECOGNISEDCHARunrecognised character
ERR_SYNTAXERRORsyntax error
ERR_NOFUNCTIONfunction doesn't exist
ERR_INCORRECTNUMARGSincorrect number of arguments for function
ERR_UNKNOWNTOKENunknown token
ERR_UNKNOWNCLASSunknown class
ERR_UNKNOWNSHEETunknown sheet name
ERR_UNKNOWNRANGESEPunknown range separator
ERR_INCORRECTFORMATincorrect format for current operation
ERR_INCORRECTDATETIMESTRINGincorrect datetime string
ERR_TOOLONGSTRINGtoo long string
ERR_IMPORTBITMAPcan't import bitmap
ERR_INVALIDZOOMzoom factor is out of range
ERR_UNKNOWNCELLREFunknown cell reference
ERR_INVALIDCOLORINDEXcolor index outside range (8 - 64)
ERR_INVALIDCOLORCOMcolor component outside range (0 - 255)
ERR_CREATETMPFILEcan't create temporary file
ERR_OPENFILEFORWRITINGcan't open file for writing
ERR_INVALIDVALUEinvalid value
ERR_WRITETOFILEcan't write to file
ERR_INTERNALinternal error

Error::Error(Err code, std::string srcname, int srcline, std::wstring message = L"")
Create error object with error code and error message, srcname and srcline are used for technical support.

virtual Error::~Error()
Destroys the error object.

Err Error::code() const
Get error code of current error.

std::wstring Error::message() const
Get error message.

std::string Error::srcinfo() const
Get system information for technical support about current error.

See also:
Class Workbook
Class Worksheet
Class Format