Fennel: ErrorTarget Class Reference (original) (raw)
ErrorTarget defines an interface for receiving Fennel row errors. More...
#include <[ErrorTarget.h](ErrorTarget%5F8h-source.html)>
Inheritance diagram for ErrorTarget:

| Public Member Functions | |
|---|---|
| virtual | ~ErrorTarget () |
| virtual void | notifyError (const std::string &source, ErrorLevel level, const std::string &message, void *address, long capacity, int index)=0 |
| Receives notification when a row exception occurs. |
Detailed Description
ErrorTarget defines an interface for receiving Fennel row errors.
Typically, many or all ErrorSouce instances post errors to the same ErrorTarget.
Definition at line 46 of file ErrorTarget.h.
Constructor & Destructor Documentation
| ErrorTarget::~ErrorTarget | ( | | ) | [virtual] | | -------------------------- | - | | - | ----------- |
Member Function Documentation
| virtual void ErrorTarget::notifyError | ( | const std::string & | source, |
|---|---|---|---|
| ErrorLevel | level, | ||
| const std::string & | message, | ||
| void * | address, | ||
| long | capacity, | ||
| int | index | ||
| ) | [pure virtual] |
Receives notification when a row exception occurs.
Parameters:
| source | the unique Fennel stream name |
|---|---|
| level | the severity of the exception |
| message | a description of the exception |
| address | pointer to the buffer containing the error record |
| capacity | the size of the error buffer |
| index | position of the column whose processing caused the exception to occur. -1 indicates that no column was culpable. 0 indicates that a filter condition was being processed. Otherwise this parameter should be a 1-indexed column position. |
Implemented in JavaErrorTarget.
Referenced by ErrorSource::postError().
The documentation for this class was generated from the following files:
- /home/pub/open/dev/fennel/exec/ErrorTarget.h
- /home/pub/open/dev/fennel/exec/ErrorTarget.cpp
