Throwable error structure reflex::Pattern::Error.
More...
#include <pattern.h>
Throwable error structure reflex::Pattern::Error.
Error codes raised during Pattern object construction.
Enumerator |
---|
REGEX_SYNTAX |
regex syntax error
|
REGEX_RANGE |
regex {n,m} range error
|
REGEX_LIST |
regex [a-b] list error
|
CODE_OVERFLOW |
compiled code is too large
|
reflex::Pattern::Error::Error |
( |
const Pattern * |
pattern, |
|
|
enum Code |
code, |
|
|
const char * |
message, |
|
|
size_t |
loc |
|
) |
| |
|
inline |
Construct error structure.
- Parameters
-
pattern | points to the pattern object with this error |
code | the error code |
message | a human-readable error message (not NULL) |
loc | location of the error in regex string Pattern::rex_ or 0 |
void reflex::Pattern::Error::display |
( |
std::ostream & |
os = std::cerr | ) |
const |
enum Code reflex::Pattern::Error::code |
size_t reflex::Pattern::Error::loc |
const char* reflex::Pattern::Error::message |
a human-readable error message (not NULL)
const Pattern& reflex::Pattern::Error::pattern |
the pattern object with this error
The documentation for this struct was generated from the following file: