ToolFailure class

A recoverable tool error that is reported back to the model as text.

Throw this from a tool body when the model can fix the problem itself (bad input, stale file, no match). The message should say what went wrong and, where possible, how to fix it.

Implemented types

Constructors

ToolFailure(String message)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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