IsbnFailure class sealed
Why an Isbn refused its input. Sealed, not an enum, because IsbnWrongLength and IsbnInvalidPrefix report values read from the input.
Four variants because ISO 2108 is a prefix range plus a check digit, so it has independent things to fail against, each with its own remedy.
- Implemented types
- Implementers
- Annotations
-
- @immutable
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What went wrong, e.g.
'failed the mod-97 check', for logs.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String
-
The value type that refused the input, e.g.
'Iban'. An explicit string, not a<T>, because extension types erase to their representation at runtime.no setteroverride
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.
inherited