morley-0.7.0: Developer tools for the Michelson Language

Safe HaskellNone
LanguageHaskell2010

Michelson.TypeCheck.Error

Description

Errors that can occur when some code is being typechecked.

Synopsis

Documentation

data NotEnoughItemsInstr Source #

Description of the instruction which wants more items on stack than currently present.

data TCTypeError Source #

Data type that represents various errors which are related to type system. These errors are used to specify info about type check errors in TCError data type.

Constructors

AnnError AnnConvergeError

Annotation unify error

TypeEqError T T

Type equality error

StackEqError [T] [T]

Stacks equality error

UnsupportedTypes [T]

Error that happens when type cannot be used in the corresponding scope. Argument of this constructor carries types which, in the aggregate, violate the restriction (e.g. timestamp and timestamp passed to MUL instruction).

InvalidValueType T

Error that happens when a Value is never a valid source for this type (e.g. timestamp cannot be obtained from a ValueTrue)

NotEnoughItemsOnStack Word NotEnoughItemsInstr

There are not enough items on stack to perform a certain instruction.

IllegalEntryPoint EpNameFromRefAnnError

Invalid entrypoint name provided

UnknownContract Address

Contract with given address is not originated.

EntryPointNotFound EpName

Given entrypoint is not present.

IllegalParamDecl ParamEpError

Incorrect parameter declaration (with respect to entrypoints feature).

NegativeNat

Natural numbers cannot be negative

MutezOverflow

Exceeds the maximal mutez value

InvalidAddress ParseEpAddressError

Address couldn't be parsed from its textual representation

InvalidKeyHash CryptoParseError

KeyHash couldn't be parsed from its textual representation

InvalidTimestamp

Timestamp is not RFC339 compliant

newtype StackSize Source #

Constructors

StackSize Natural 
Instances
Eq StackSize Source # 
Instance details

Defined in Michelson.TypeCheck.Error

Show StackSize Source # 
Instance details

Defined in Michelson.TypeCheck.Error