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.
| Constant | Description |
|---|---|
| ERR_WORKSHEET_EXIST | worksheet already exist |
| ERR_INVALIDROWCOL | row or column value are invalid |
| ERR_UNRECOGNISEDCHAR | unrecognised character |
| ERR_SYNTAXERROR | syntax error |
| ERR_NOFUNCTION | function doesn't exist |
| ERR_INCORRECTNUMARGS | incorrect number of arguments for function |
| ERR_UNKNOWNTOKEN | unknown token |
| ERR_UNKNOWNCLASS | unknown class |
| ERR_UNKNOWNSHEET | unknown sheet name |
| ERR_UNKNOWNRANGESEP | unknown range separator |
| ERR_INCORRECTFORMAT | incorrect format for current operation |
| ERR_INCORRECTDATETIMESTRING | incorrect datetime string |
| ERR_TOOLONGSTRING | too long string |
| ERR_IMPORTBITMAP | can't import bitmap |
| ERR_INVALIDZOOM | zoom factor is out of range |
| ERR_UNKNOWNCELLREF | unknown cell reference |
| ERR_INVALIDCOLORINDEX | color index outside range (8 - 64) |
| ERR_INVALIDCOLORCOM | color component outside range (0 - 255) |
| ERR_CREATETMPFILE | can't create temporary file |
| ERR_OPENFILEFORWRITING | can't open file for writing |
| ERR_INVALIDVALUE | invalid value |
| ERR_WRITETOFILE | can't write to file |
| ERR_INTERNAL | internal 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
