Classes | Defines | Typedefs
rpaerror.h File Reference

The public interface for examining errors. More...

Go to the source code of this file.

Classes

struct  rpa_errinfo_s
 Error description. More...

Defines

#define RPA_ERRINFO_NONE   0
#define RPA_ERRINFO_CODE   (1<<0)
#define RPA_ERRINFO_OFFSET   (1<<1)
#define RPA_ERRINFO_LINE   (1<<2)
#define RPA_ERRINFO_RULEUID   (1<<3)
#define RPA_ERRINFO_NAME   (1<<4)
#define RPA_E_NONE   0
#define RPA_E_OUTOFMEM   1001
#define RPA_E_NOTCOMPILED   1002
#define RPA_E_NOTOPEN   1003
#define RPA_E_NOTCLOSED   1004
#define RPA_E_NOTFOUND   1005
#define RPA_E_SYNTAXERROR   1006
#define RPA_E_UNRESOLVEDSYMBOL   1007
#define RPA_E_PARAM   1008
#define RPA_E_COMPILE   1009
#define RPA_E_EXECUTION   2001
#define RPA_E_USERABORT   2002
#define RPA_E_RULEABORT   2003
#define RPA_E_INVALIDINPUT   2004

Typedefs

typedef struct rpa_errinfo_s rpa_errinfo_t
 RPA error description.

Detailed Description

The public interface for examining errors.

Synopsis

The RPA error(s) interface.


Define Documentation

#define RPA_E_COMPILE   1009

Compile error

#define RPA_E_EXECUTION   2001

Execution error

#define RPA_E_INVALIDINPUT   2004

Invalid input was specified

#define RPA_E_NONE   0

No error

#define RPA_E_NOTCLOSED   1004

The database is not closed. Use rpa_dbex_close to close it.

#define RPA_E_NOTCOMPILED   1002

The database is not yet compiled to byte code. Some of the operations are not possible until the call to rpa_dbex_compile is made.

#define RPA_E_NOTFOUND   1005

The specified rule cannot be found

#define RPA_E_NOTOPEN   1003

The database is not open. Use rpa_dbex_open to open it.

#define RPA_E_OUTOFMEM   1001

Not enough memory

#define RPA_E_PARAM   1008

Invalid parameter

#define RPA_E_RULEABORT   2003

If a rule is set to abort with the directive #!abort, if it cannot be matched the engine will generate this error

#define RPA_E_SYNTAXERROR   1006

Syntax Error. Check the BNF syntax.

#define RPA_E_UNRESOLVEDSYMBOL   1007

A rule name is used in the BNF specification, but it is not defined

#define RPA_E_USERABORT   2002

Operation is interrupted by user

#define RPA_ERRINFO_CODE   (1<<0)

The code field is set

#define RPA_ERRINFO_LINE   (1<<2)

The line field is set

#define RPA_ERRINFO_NAME   (1<<4)

The name field is set

#define RPA_ERRINFO_NONE   0

No error fields are set

#define RPA_ERRINFO_OFFSET   (1<<1)

The offset field is set

#define RPA_ERRINFO_RULEUID   (1<<3)

The ruleid is set