ASTBinaryException class

A binary AST file could not be read.

This is an Exception, not an Error: a malformed or corrupted input file is an expected, recoverable condition that callers catch and report — unlike SyntaxError, which reports a mistake in code the programmer supplied.

Implemented types
Implementers

Constructors

ASTBinaryException(String message, ASTBinaryError error, {int? offset, int? formatVersion, int? minReaderVersion, int? sectionId})
const

Properties

error → ASTBinaryError
The machine-readable cause.
final
formatVersion → int?
The formatVersion the file declared, when it could be read.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A human-readable description of the failure.
final
minReaderVersion → int?
The minReaderVersion the file declared, when it could be read.
final
offset → int?
Byte offset of the failure, when known.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sectionId → int?
The section being decoded when the failure occurred, when applicable.
final

Methods

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

Operators

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