Enum stacks_rpc_client::clarity::vm::ast::errors::ParseErrors
pub enum ParseErrors {
Show 58 variants
CostOverflow,
CostBalanceExceeded(ExecutionCost, ExecutionCost),
MemoryBalanceExceeded(u64, u64),
TooManyExpressions,
ExpressionStackDepthTooDeep,
VaryExpressionStackDepthTooDeep,
FailedCapturingInput,
SeparatorExpected(String),
SeparatorExpectedAfterColon(String),
ProgramTooLarge,
IllegalVariableName(String),
IllegalContractName(String),
UnknownQuotedValue(String),
FailedParsingIntValue(String),
FailedParsingUIntValue(String),
FailedParsingBuffer(String),
FailedParsingHexValue(String, String),
FailedParsingPrincipal(String),
FailedParsingField(String),
FailedParsingRemainder(String),
ClosingParenthesisUnexpected,
ClosingParenthesisExpected,
ClosingTupleLiteralUnexpected,
ClosingTupleLiteralExpected,
CircularReference(Vec<String>),
TupleColonExpected(usize),
TupleCommaExpected(usize),
TupleItemExpected(usize),
NameAlreadyUsed(String),
TraitReferenceNotAllowed,
ImportTraitBadSignature,
DefineTraitBadSignature,
ImplTraitBadSignature,
TraitReferenceUnknown(String),
CommaSeparatorUnexpected,
ColonSeparatorUnexpected,
InvalidCharactersDetected,
InvalidEscaping,
CostComputationFailed(String),
Lexer(LexerError),
ContractNameTooLong(String),
ExpectedContractIdentifier,
ExpectedTraitIdentifier,
IllegalTraitName(String),
InvalidPrincipalLiteral,
InvalidBuffer,
NameTooLong(String),
UnexpectedToken(Token),
ExpectedClosing(Token),
TupleColonExpectedv2,
TupleCommaExpectedv2,
TupleValueExpected,
IllegalClarityName(String),
IllegalASCIIString(String),
IllegalUtf8String(String),
ExpectedWhitespace,
NoteToMatchThis(Token),
UnexpectedParserFailure,
}
Variants§
CostOverflow
CostBalanceExceeded(ExecutionCost, ExecutionCost)
MemoryBalanceExceeded(u64, u64)
TooManyExpressions
ExpressionStackDepthTooDeep
VaryExpressionStackDepthTooDeep
FailedCapturingInput
SeparatorExpected(String)
SeparatorExpectedAfterColon(String)
ProgramTooLarge
IllegalVariableName(String)
IllegalContractName(String)
UnknownQuotedValue(String)
FailedParsingIntValue(String)
FailedParsingUIntValue(String)
FailedParsingBuffer(String)
FailedParsingHexValue(String, String)
FailedParsingPrincipal(String)
FailedParsingField(String)
FailedParsingRemainder(String)
ClosingParenthesisUnexpected
ClosingParenthesisExpected
ClosingTupleLiteralUnexpected
ClosingTupleLiteralExpected
CircularReference(Vec<String>)
TupleColonExpected(usize)
TupleCommaExpected(usize)
TupleItemExpected(usize)
NameAlreadyUsed(String)
TraitReferenceNotAllowed
ImportTraitBadSignature
DefineTraitBadSignature
ImplTraitBadSignature
TraitReferenceUnknown(String)
CommaSeparatorUnexpected
ColonSeparatorUnexpected
InvalidCharactersDetected
InvalidEscaping
CostComputationFailed(String)
Lexer(LexerError)
ContractNameTooLong(String)
ExpectedContractIdentifier
ExpectedTraitIdentifier
IllegalTraitName(String)
InvalidPrincipalLiteral
InvalidBuffer
NameTooLong(String)
UnexpectedToken(Token)
ExpectedClosing(Token)
TupleColonExpectedv2
TupleCommaExpectedv2
TupleValueExpected
IllegalClarityName(String)
IllegalASCIIString(String)
IllegalUtf8String(String)
ExpectedWhitespace
NoteToMatchThis(Token)
UnexpectedParserFailure
Should be an unreachable error
Trait Implementations§
§impl Debug for ParseErrors
impl Debug for ParseErrors
§impl DiagnosableError for ParseErrors
impl DiagnosableError for ParseErrors
§impl From<ParseErrors> for ParseError
impl From<ParseErrors> for ParseError
§fn from(err: ParseErrors) -> ParseError
fn from(err: ParseErrors) -> ParseError
Converts to this type from the input type.
§impl PartialEq for ParseErrors
impl PartialEq for ParseErrors
§fn eq(&self, other: &ParseErrors) -> bool
fn eq(&self, other: &ParseErrors) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParseErrors
Auto Trait Implementations§
impl RefUnwindSafe for ParseErrors
impl Send for ParseErrors
impl Sync for ParseErrors
impl Unpin for ParseErrors
impl UnwindSafe for ParseErrors
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more