AutocompleteFailedException class Null safety
A wrapper class for an exception that caused an autocomplete event to fail.
This generally indicates incorrect or slow code inside an autocomplete callback, and the developer should try to fix the issue.
If you are throwing exceptions to indicate autocomplete failure, consider returning null
instead.
- Inheritance
-
- Object
- CommandsException
- AutocompleteFailedException
Constructors
- AutocompleteFailedException(Exception exception, AutocompleteContext context)
- Create a new AutocompleteFailedException.
Properties
- context → AutocompleteContext
-
The context in which the exception occurred.
final
- exception → Exception
-
The exception that occurred.
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
- message ↔ String
-
The message for this exception.
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited