11 #include <Coconut/Coconut.h>
19 KETooMaryRegisterError,
20 KEInvalidPathDescriptionError,
21 KENonexistentPathError,
22 KEInvalidValueTypeError,
23 KEIdentifierRequiredError,
41 struct CNString * errorMessage ;
44 unsigned long numberOfRequiredRegisters ;
45 } tooMaryRegisterError ;
47 struct CNString * invalidPath ;
48 } invalidPathDescription ;
51 } nonexistentPathError ;
53 const char * requiredType ;
54 const char * givenType ;
57 struct KEPath * invalidPath ;
58 } identifierRequired ;
60 const struct CNFixedString * conflictedIdentifier ;
118 const char * giventype,
120 struct CNResource * resource) ;
156 KEReleaseError(
struct KEError * dst)
166 static inline struct CNObject *
167 KEObjectOfError(
struct KEError * src)
179 KELineInfoInError(
struct KEError * src)
KEProgram class.
Definition: KELineInfo.h:19
struct KEError * KEAllocateParserError(const char *msg, struct KELineInfo *linfo, struct CNResource *resource)
Allocate parse error object.
struct KEError * KEAllocateTooManyRegisterError(unsigned long regnum, struct KELineInfo *linfo, struct CNResource *resource)
Allocate Too many register error.
struct KEError * KEAllocateExceptionError(const struct KEException *except, struct CNResource *resource)
Allocate exception error.
Define KEValue data structure.
Exception information.
Definition: KEException.h:31
struct KEError * KEAllocateNonexistentPathError(struct KEPath *path, struct KELineInfo *linfo, struct CNResource *resource)
Allocate nonexistent path error.
void KEPrintError(FILE *outfp, const struct KEError *src)
Print parse error message to file stream.
struct KEError * KEAllocateMergeFailedError(const struct CNFixedString *ident, struct KELineInfo *linfo, struct CNResource *resource)
Allocate merge failed error.
KEErrorKind errorKind
Definition: KEError.h:35
Instruction class.
Definition: KEError.h:31
Define KEException data structure.
KEErrorKind
Definition: KEError.h:17
Forward declarations of the data type in KiwiEngine.
struct KELineInfo * lineInfo
Definition: KEError.h:37
struct KEError * KEAllocateIdentifierRequiredError(struct KEPath *path, struct KELineInfo *linfo, struct CNResource *resource)
Allocate identifier required error.
struct CNObject superClass
Definition: KEError.h:33
struct KEError * KEAllocateInvalidPathDescriptionError(struct CNString *pathstr, struct KELineInfo *linfo, struct CNResource *resource)
Allocate invalid path description error.
struct KEError * KEAllocateInvalidValueTypeError(const char *reqtype, const char *giventype, struct KELineInfo *linfo, struct CNResource *resource)
Allocate invalid value type error.