[][src]Enum clarity_repl::clarity::analysis::errors::CheckErrors

pub enum CheckErrors {
    CostOverflow,
    CostBalanceExceeded(ExecutionCostExecutionCost),
    MemoryBalanceExceeded(u64u64),
    ValueTooLarge,
    ValueOutOfBounds,
    TypeSignatureTooDeep,
    ExpectedName,
    BadMatchOptionSyntax(Box<CheckErrors>),
    BadMatchResponseSyntax(Box<CheckErrors>),
    BadMatchInput(TypeSignature),
    UnknownListConstructionFailure,
    ListTypesMustMatch,
    ConstructedListTooLarge,
    TypeError(TypeSignatureTypeSignature),
    TypeLiteralError(TypeSignatureTypeSignature),
    TypeValueError(TypeSignatureValue),
    NoSuperType(TypeSignatureTypeSignature),
    InvalidTypeDescription,
    UnknownTypeName(String),
    UnionTypeError(Vec<TypeSignature>, TypeSignature),
    UnionTypeValueError(Vec<TypeSignature>, Value),
    ExpectedLiteral,
    ExpectedOptionalType(TypeSignature),
    ExpectedResponseType(TypeSignature),
    ExpectedOptionalOrResponseType(TypeSignature),
    ExpectedOptionalValue(Value),
    ExpectedResponseValue(Value),
    ExpectedOptionalOrResponseValue(Value),
    CouldNotDetermineResponseOkType,
    CouldNotDetermineResponseErrType,
    CouldNotDetermineMatchTypes,
    TypeAlreadyAnnotatedFailure,
    TypeAnnotationExpectedFailure,
    CheckerImplementationFailure,
    BadTokenName,
    DefineFTBadSignature,
    DefineNFTBadSignature,
    NoSuchNFT(String),
    NoSuchFT(String),
    BadTransferSTXArguments,
    BadTransferFTArguments,
    BadTransferNFTArguments,
    BadMintFTArguments,
    BadTupleFieldName,
    ExpectedTuple(TypeSignature),
    NoSuchTupleField(StringTupleTypeSignature),
    EmptyTuplesNotAllowed,
    BadTupleConstruction,
    TupleExpectsPairs,
    NoSuchDataVariable(String),
    BadMapName,
    NoSuchMap(String),
    DefineFunctionBadSignature,
    BadFunctionName,
    BadMapTypeDefinition,
    PublicFunctionMustReturnResponse(TypeSignature),
    DefineVariableBadSignature,
    ReturnTypesMustMatch(TypeSignatureTypeSignature),
    CircularReference(Vec<String>),
    NoSuchContract(String),
    NoSuchPublicFunction(StringString),
    PublicFunctionNotReadOnly(StringString),
    ContractAlreadyExists(String),
    ContractCallExpectName,
    NoSuchBlockInfoProperty(String),
    GetBlockInfoExpectPropertyName,
    NameAlreadyUsed(String),
    NonFunctionApplication,
    ExpectedListApplication,
    ExpectedSequence(TypeSignature),
    MaxLengthOverflow,
    BadLetSyntax,
    BadSyntaxBinding,
    BadSyntaxExpectedListOfPairs,
    MaxContextDepthReached,
    UndefinedFunction(String),
    UndefinedVariable(String),
    RequiresAtLeastArguments(usizeusize),
    IncorrectArgumentCount(usizeusize),
    IfArmsMustMatch(TypeSignatureTypeSignature),
    MatchArmsMustMatch(TypeSignatureTypeSignature),
    DefaultTypesMustMatch(TypeSignatureTypeSignature),
    TooManyExpressions,
    IllegalOrUnknownFunctionApplication(String),
    UnknownFunction(String),
    TraitReferenceUnknown(String),
    TraitMethodUnknown(StringString),
    ExpectedTraitIdentifier,
    ImportTraitBadSignature,
    TraitReferenceNotAllowed,
    BadTraitImplementation(StringString),
    DefineTraitBadSignature,
    UnexpectedTraitOrFieldReference,
    TraitBasedContractCallInReadOnly,
    ContractOfExpectsTrait,
    InvalidCharactersDetected,
    WriteAttemptedInReadOnly,
    AtBlockClosureMustBeReadOnly,
}

Variants

CostOverflow
CostBalanceExceeded(ExecutionCostExecutionCost)
MemoryBalanceExceeded(u64u64)
ValueTooLarge
ValueOutOfBounds
TypeSignatureTooDeep
ExpectedName
BadMatchOptionSyntax(Box<CheckErrors>)
BadMatchResponseSyntax(Box<CheckErrors>)
BadMatchInput(TypeSignature)
UnknownListConstructionFailure
ListTypesMustMatch
ConstructedListTooLarge
TypeLiteralError(TypeSignatureTypeSignature)
TypeValueError(TypeSignatureValue)
InvalidTypeDescription
UnknownTypeName(String)
UnionTypeError(Vec<TypeSignature>, TypeSignature)
UnionTypeValueError(Vec<TypeSignature>, Value)
ExpectedLiteral
ExpectedOptionalType(TypeSignature)
ExpectedResponseType(TypeSignature)
ExpectedOptionalOrResponseType(TypeSignature)
ExpectedOptionalValue(Value)
ExpectedResponseValue(Value)
ExpectedOptionalOrResponseValue(Value)
CouldNotDetermineResponseOkType
CouldNotDetermineResponseErrType
CouldNotDetermineMatchTypes
TypeAlreadyAnnotatedFailure
TypeAnnotationExpectedFailure
CheckerImplementationFailure
BadTokenName
DefineFTBadSignature
DefineNFTBadSignature
NoSuchNFT(String)
NoSuchFT(String)
BadTransferSTXArguments
BadTransferFTArguments
BadTransferNFTArguments
BadMintFTArguments
BadTupleFieldName
ExpectedTuple(TypeSignature)
NoSuchTupleField(StringTupleTypeSignature)
EmptyTuplesNotAllowed
BadTupleConstruction
TupleExpectsPairs
NoSuchDataVariable(String)
BadMapName
NoSuchMap(String)
DefineFunctionBadSignature
BadFunctionName
BadMapTypeDefinition
PublicFunctionMustReturnResponse(TypeSignature)
DefineVariableBadSignature
ReturnTypesMustMatch(TypeSignatureTypeSignature)
CircularReference(Vec<String>)
NoSuchContract(String)
NoSuchPublicFunction(StringString)
PublicFunctionNotReadOnly(StringString)
ContractAlreadyExists(String)
ContractCallExpectName
NoSuchBlockInfoProperty(String)
GetBlockInfoExpectPropertyName
NameAlreadyUsed(String)
NonFunctionApplication
ExpectedListApplication
ExpectedSequence(TypeSignature)
MaxLengthOverflow
BadLetSyntax
BadSyntaxBinding
BadSyntaxExpectedListOfPairs
MaxContextDepthReached
UndefinedFunction(String)
UndefinedVariable(String)
RequiresAtLeastArguments(usizeusize)
IncorrectArgumentCount(usizeusize)
IfArmsMustMatch(TypeSignatureTypeSignature)
MatchArmsMustMatch(TypeSignatureTypeSignature)
DefaultTypesMustMatch(TypeSignatureTypeSignature)
TooManyExpressions
IllegalOrUnknownFunctionApplication(String)
UnknownFunction(String)
TraitReferenceUnknown(String)
TraitMethodUnknown(StringString)
ExpectedTraitIdentifier
ImportTraitBadSignature
TraitReferenceNotAllowed
BadTraitImplementation(StringString)
DefineTraitBadSignature
UnexpectedTraitOrFieldReference
TraitBasedContractCallInReadOnly
ContractOfExpectsTrait
InvalidCharactersDetected
WriteAttemptedInReadOnly
AtBlockClosureMustBeReadOnly

Trait Implementations

impl Debug for CheckErrors[src]

impl DiagnosableError for CheckErrors[src]

impl Display for CheckErrors[src]

impl Error for CheckErrors[src]

impl From<CheckErrors> for Error[src]

impl From<CheckErrors> for SerializationError[src]

impl From<CheckErrors> for CheckError[src]

impl From<CostErrors> for CheckErrors[src]

impl PartialEq<CheckErrors> for CheckErrors[src]

impl StructuralPartialEq for CheckErrors[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.