GeneratorError

Type Alias GeneratorError 

Source
pub type GeneratorError = Error;
Expand description

Aliased Type§

pub enum GeneratorError {
    UnknownType(Ident),
    UnknownNamespace(NamespaceId),
    InvalidDefaultValue(Ident, String),
    InvalidIdentifier(InvalidIdentPath),
}

Variants§

§

UnknownType(Ident)

Unknown type identifier.

Is raised if a specific identifier could not be resolved to it’s corresponding type information.

§

UnknownNamespace(NamespaceId)

Unknown namespace.

Is raised if a specific namespace id could not be resolved to it’s corresponding namespace information.

§

InvalidDefaultValue(Ident, String)

Invalid default value.

Is raised if the default value for an attribute defined in the schema could not be converted to a suitable default code snippet.

§

InvalidIdentifier(InvalidIdentPath)

Invalid identifier.

Is raised if the user passed a invalid identifier.