Whereas ParsingError is thrown when parsing fails, e.g. in a fromString function, this type is returned from "defensive" functions like isValid.
Optional
If valid is false, this will be a code explaining why parsing failed.
If valid is false, this will be a string explaining why parsing failed.
True if valid, false otherwise.
Whereas ParsingError is thrown when parsing fails, e.g. in a fromString function, this type is returned from "defensive" functions like isValid.