Enum ketos::compile::CompileError [] [src]

pub enum CompileError {
    ArityError {
        name: Name,
        expected: Arity,
        found: u32,
    },
    CannotDefine(Name),
    ConstantExists(Name),
    DuplicateExports,
    DuplicateModuleDoc,
    DuplicateParameter(Name),
    ExportError {
        module: Name,
        name: Name,
    },
    ImportCycle(Name),
    ImportError {
        module: Name,
        name: Name,
    },
    ImportShadow(Name),
    InvalidCallExpression(&'static str),
    InvalidCommaAt,
    InvalidModuleName(Name),
    MacroRecursionExceeded,
    MissingExport,
    ModuleError(Name),
    NotConstant(Name),
    OperandOverflow(u32),
    PrivacyError {
        module: Name,
        name: Name,
    },
    SyntaxError(&'static str),
    UnbalancedComma,
}

Represents an error generated while compiling to bytecode.

Variants

Error in arity for call to system function

Fields of ArityError

Name of function

Expected count or range of arguments

Number of arguments present

Attempt to define name of standard value or operator

Attempt to define name held by const value

Duplicate exports declaration

Duplicate module-doc declaration

Duplicate name in parameter list

Attempt to export nonexistent name from module

Fields of ExportError

Module name

Imported name

Recursion in module imports

Attempt to import nonexistent name from module

Fields of ImportError

Module name

Imported name

Attempt to import or define name which already exists

Invalid expression to function call

,@expr form outside of a list

Module name contains invalid characters

Recursion limit exceeded while expanding macros

Missing export declaration in loaded module

Failed to load a module

const operator value is not constant

Operand value overflow

Attempt to import value that is not exported

Fields of PrivacyError

Module name

Imported name

Error in parsing operator syntax

More commas than backquotes

Trait Implementations

impl Debug for CompileError
[src]

Formats the value using the given formatter.

impl Display for CompileError
[src]

Formats the value using the given formatter. Read more

impl NameDisplay for CompileError
[src]

Writes the value's display representation to the formatter stream.