Error Reference
CCL errors try to fail clearly instead of silently generating wrong code.
Validation and attributes
Section titled “Validation and attributes”ValidationError
Section titled “ValidationError”Generic validation failure.
InvalidAttributeUsageError
Section titled “InvalidAttributeUsageError”An attribute was used with the wrong parameters, in the wrong context, or on the wrong entity.
Duplicate definitions
Section titled “Duplicate definitions”DuplicateFieldError
Section titled “DuplicateFieldError”A model contains more than one field with the same name.
DuplicateModelError
Section titled “DuplicateModelError”A source file or project contains more than one model with the same name.
Generation support
Section titled “Generation support”UnsupportedFieldTypeError
Section titled “UnsupportedFieldTypeError”A generator cannot map a specific field type for a target language.
UnsupportedTypeDefinitionError
Section titled “UnsupportedTypeDefinitionError”A generator encountered a type definition kind it does not support.
UnsupportedFileNamingStyleError
Section titled “UnsupportedFileNamingStyleError”FileNamingStyle was set to a style unsupported by the selected target generator.
FieldNameConflictError
Section titled “FieldNameConflictError”A field name conflicts with a reserved name, built-in type name, model name, or another protected name.
Generator setup
Section titled “Generator setup”language not supported
Section titled “language not supported”The requested target language or alias is not registered.
missing code context
Section titled “missing code context”Generation was requested without a parsed CCL code context.