|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
The JSON error container object.
#include <JParser.h>
Public Member Functions | |
| JErr () | |
| Initialize only the error code to JErrT_NoErr. More... | |
| void | reset () |
| Clear the error code and message pointer so the object can be reused. More... | |
| bool | isError () |
| bool | noError () |
| JErrT | getErrT () |
| JVType | getExpT () |
| JVType | getRecT () |
| int | setTooFewParams () |
| Record JErrT_InvalidMethodParams with a static message if no error exists. More... | |
| int | setTypeErr (JVType expT, JVType recT) |
| Record JErrT_WrongType only when no earlier error exists. More... | |
| int | setError (JErrT err, const char *msg) |
| Record an error only when no earlier error exists. More... | |
Public Attributes | |
| const char * | msg |
| Borrowed message for the recorded error; constructor alone does not initialize it. More... | |
| const char* JErr::msg |
Borrowed message for the recorded error; constructor alone does not initialize it.