Errors
public enum Errors: ParseError
Generic errors that could occur on Core parsers
-
is thrown when
.unwrap()
is called on a failed ParseResultDeclaration
Swift
case unwrappedFailedResult
-
is thrown when
error()
is called on a succeeded ParseResultDeclaration
Swift
case errorFromSuccessfulResult
-
is returned when
Parser.or
is called on an empty collection of parsersDeclaration
Swift
case conjunctionOfEmptyCollection
-
is returned when
atLeastOnce
failed because the parser succeeded not at allDeclaration
Swift
case expectedAtLeastOnce
-
is returned when
atLeast(count:)
failed because the parser succeeded less than nDeclaration
Swift
case expectedAtLeast(Int, got: Int)
-
is returned when
exactly(count:)
failed because the parser succeeded less than or more than nDeclaration
Swift
case expectedExactly(Int, got: Int)