ToonStructureError class

Error that occurs when TOON structure is invalid

Inheritance
Implementers

Constructors

ToonStructureError(String message, {ToonErrorSeverity severity = ToonErrorSeverity.error, int? line, int? column, int? offset, String? source, Map<String, dynamic>? context, Type? expectedType, String? actualValue, String? structureType})
Creates a TOON structure error
const

Properties

actualValue String?
The actual value that was encountered
finalinherited
column int?
Column number where the error occurred (1-based)
finalinherited
context Map<String, dynamic>?
Additional context about the error
finalinherited
expectedType Type?
The expected type that failed to parse
finalinherited
hashCode int
The hash code for this object.
no setterinherited
line int?
Line number where the error occurred (1-based)
finalinherited
location String
Get location information as a formatted string
no setterinherited
message String
Error message describing what went wrong
finalinherited
offset int?
Character offset where the error occurred (0-based)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity ToonErrorSeverity
Severity level of the error
finalinherited
source String?
Source text where the error occurred
finalinherited
sourceExcerpt String?
Get the source excerpt around the error location
no setterinherited
structureType String?
The type of structure that was invalid (e.g., 'array', 'object')
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited