23 #ifndef __INTERFACES_GENERATOR_EXCEPTIONS_H_ 24 #define __INTERFACES_GENERATOR_EXCEPTIONS_H_ 26 #include <core/exception.h> 42 va_start(arg, format);
62 va_start(arg, format);
83 append(
"Invalid type for %s item '%s': %s", item, name, type);
100 append(
"Invalid value for '%s' of type %s: %s", name, type, value);
117 append(
"Attribute '%s' may not be specified for '%s' of type %s", attr, name, type);
134 append(
"Illegal flag '%s' set for %s", flag, name);
152 append(
"Attribute '%s' is required '%s' of type %s", attr, name, type);
167 append(
"There are multiple %s items with name '%s'", item, name);
Thrown if document contains illegal content.
Fawkes library namespace.
Exception()
Constructor for subclasses.
InterfaceGeneratorMissingAttributeException(const char *name, const char *type, const char *attr)
Constructor.
InterfaceGeneratorInvalidContentException(const char *format,...)
Constructor.
InterfaceGeneratorInvalidValueException(const char *name, const char *type, const char *value)
Constructor.
Thrown if illegal value is supplied.
Base class for exceptions in Fawkes.
Thrown if required attribute is missing supplied.
Thrown if name is ambiguous.
InterfaceGeneratorInvalidTypeException(const char *item, const char *name, const char *type)
Constructor.
InterfaceGeneratorInvalidDocumentException(const char *format,...)
Constructor.
void append_va(const char *format, va_list va)
Append messages to the message list.
Thrown if document was invalid.
Thrown if illegal flag is supplied.
InterfaceGeneratorInvalidAttributeException(const char *name, const char *type, const char *attr)
Constructor.
InterfaceGeneratorInvalidFlagException(const char *name, const char *flag)
Constructor.
Thrown if illegal attribute is supplied.
InterfaceGeneratorAmbiguousNameException(const char *name, const char *item)
Constructor.
void append(const char *format,...)
Append messages to the message list.
Thrown if illegal type is supplied.