TomlUnknownKeyTypeException class
An error which is thrown when an object cannot be encoded as a key.
Only String
s are allowed as keys by TOML. All other objects that are
used as keys in hash maps must implement the TomlEncodableKey
interface.
Example:
var encoder = new TomlEncoder();
encoder.encode({42: 'Answer to the Ultimate Question'});
throws an TomlUnknownKeyTypeException because integers cannot be used as a key in TOML.
- Inheritance
-
- Object
- TomlException
- TomlUnknownKeyTypeException
- Annotations
-
- @immutable
Constructors
- TomlUnknownKeyTypeException(dynamic value)
- Creates a new exception for the given value.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- message → String
-
A human readable description of the error.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → dynamic
-
The object which cannot be encoded as a TOML value.
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.
override