TomlInvalidEscapeSequenceException class
An exception which is thrown when the parser encounters an unspecified escape sequence.
Example:
dir = "some\windows\path"
throws an TomlInvalidEscapeSequenceException with escapeSequence
set to r'\w'
.
An exception of this type is also thrown when there are Unicode escape sequences for non-scalar values.
Example:
invalid = "\uD801"
throws an TomlInvalidEscapeSequenceException with escapeSequence
set to r'\uD801'
because 0xD800
is a high-surrogate code unit.
- Inheritance
-
- Object
- TomlException
- TomlInvalidEscapeSequenceException
- Annotations
-
- @immutable
Constructors
- TomlInvalidEscapeSequenceException(String escapeSequence)
- Creates a new exception for the given invalid escapeSequence.
Properties
- escapeSequence → String
-
The invalid escape sequence.
final
- 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
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