plutus-core-1.0.0.1: Language library for Plutus Core
Safe Haskell None
Language Haskell2010

ErrorCode

Synopsis

Documentation

class HasErrorCode a where Source #

Assigns an error-code to data-constructors (values) of error types. Note, when implementing this method you're only supposed to look at the outermost constructor (whnf) of the a value to decide for the error-code.

Instances

Instances details
HasErrorCode FreeVariableError Source #
Instance details

Defined in PlutusCore.DeBruijn.Internal

HasErrorCode UnliftingError Source #
Instance details

Defined in PlutusCore.Evaluation.Machine.Exception

HasErrorCode ParseError Source #
Instance details

Defined in PlutusCore.Error

HasErrorCode CekUserError Source #
Instance details

Defined in UntypedPlutusCore.Evaluation.Machine.Cek.Internal

HasErrorCode ( MachineError err) Source #
Instance details

Defined in PlutusCore.Evaluation.Machine.Exception

HasErrorCode ( UniqueError _a) Source #
Instance details

Defined in PlutusCore.Error

( HasErrorCode user, HasErrorCode internal) => HasErrorCode ( EvaluationError user internal) Source #
Instance details

Defined in PlutusCore.Evaluation.Machine.Exception

HasErrorCode err => HasErrorCode ( ErrorWithCause err t) Source #
Instance details

Defined in PlutusCore.Evaluation.Machine.Exception

HasErrorCode ( TypeErrorExt _a _b) Source #
Instance details

Defined in PlutusIR.Error

HasErrorCode ( Error _a _b _c) Source #
Instance details

Defined in PlutusCore.Error

HasErrorCode ( Error _a _b _c) Source #
Instance details

Defined in PlutusIR.Error

HasErrorCode ( TypeError _a _b _c _d) Source #
Instance details

Defined in PlutusCore.Error

HasErrorCode ( NormCheckError _a _b _c _d _e) Source #
Instance details

Defined in PlutusCore.Error