Define KEError class.
More...
#include <Coconut/Coconut.h>
#include "KEForwarders.h"
#include "KEException.h"
#include "KEValue.h"
Go to the source code of this file.
|
enum | KEErrorKind {
KEParserError,
KETooMaryRegisterError,
KEInvalidPathDescriptionError,
KENonexistentPathError,
KEInvalidValueTypeError,
KEIdentifierRequiredError,
KEMergeFailedError,
KEExceptionError
} |
|
|
struct KEError * | KEAllocateParserError (const char *msg, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate parse error object. More...
|
|
struct KEError * | KEAllocateTooManyRegisterError (unsigned long regnum, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate Too many register error. More...
|
|
struct KEError * | KEAllocateInvalidPathDescriptionError (struct CNString *pathstr, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate invalid path description error. More...
|
|
struct KEError * | KEAllocateNonexistentPathError (struct KEPath *path, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate nonexistent path error. More...
|
|
struct KEError * | KEAllocateInvalidValueTypeError (const char *reqtype, const char *giventype, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate invalid value type error. More...
|
|
struct KEError * | KEAllocateIdentifierRequiredError (struct KEPath *path, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate identifier required error. More...
|
|
struct KEError * | KEAllocateMergeFailedError (const struct CNFixedString *ident, struct KELineInfo *linfo, struct CNResource *resource) |
| Allocate merge failed error. More...
|
|
struct KEError * | KEAllocateExceptionError (const struct KEException *except, struct CNResource *resource) |
| Allocate exception error. More...
|
|
void | KEPrintError (FILE *outfp, const struct KEError *src) |
| Print parse error message to file stream. More...
|
|
Define KEError class.
- Copyright
- Copyright (C) 2014 Steel Wheels Project
struct KEError* KEAllocateExceptionError |
( |
const struct KEException * |
except, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate exception error.
- Returns
- Allocated object
- Parameters
-
except | Exception information |
resource | Resource to allocate the object |
struct KEError* KEAllocateIdentifierRequiredError |
( |
struct KEPath * |
path, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate identifier required error.
- Returns
- Allocated object
- Parameters
-
path | Given path |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
struct KEError* KEAllocateInvalidPathDescriptionError |
( |
struct CNString * |
pathstr, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate invalid path description error.
- Returns
- Allocated object
- Parameters
-
pathstr | Path string |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
struct KEError* KEAllocateInvalidValueTypeError |
( |
const char * |
reqtype, |
|
|
const char * |
giventype, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate invalid value type error.
- Returns
- Allocated object
- Parameters
-
reqtype | Name of required data type |
giventype | Name of given (wrong) type |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
struct KEError* KEAllocateMergeFailedError |
( |
const struct CNFixedString * |
ident, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate merge failed error.
- Returns
- Allocated object
- Parameters
-
ident | Merge failed identifier |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
struct KEError* KEAllocateNonexistentPathError |
( |
struct KEPath * |
path, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate nonexistent path error.
- Returns
- Allocated object
- Parameters
-
path | Nonexistent Path |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
struct KEError* KEAllocateParserError |
( |
const char * |
msg, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate parse error object.
- Returns
- Allocated object
- Parameters
-
msg | Error message from parser |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
struct KEError* KEAllocateTooManyRegisterError |
( |
unsigned long |
regnum, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate Too many register error.
- Returns
- Allocated object
- Parameters
-
regnum | Number of required registers |
linfo | Line info where the error is occured |
resource | Resource to allocate the object |
void KEPrintError |
( |
FILE * |
outfp, |
|
|
const struct KEError * |
src |
|
) |
| |
Print parse error message to file stream.
- Parameters
-
outfp | Output file stream |
src | Source error |