sheen/error
Types
pub type BuildError =
String
pub type BuildResult(a) =
Result(a, BuildError)
pub type ExtractionError {
UnrecognisedLong(String)
UnrecognisedShort(String)
UnexpectedArgument(String)
NoArgument(String)
NotAFlag(String)
}
Constructors
-
UnrecognisedLong(String)
When a long option is not recognised.
-
UnrecognisedShort(String)
When a short option is not recognised.
-
UnexpectedArgument(String)
When too many arguments are given.
-
NoArgument(String)
When a named argument option is not given an argument.
-
NotAFlag(String)
When a flag is given an argument.
pub type ParseError {
DecodeError(dynamic.DecodeError)
ValidationError(String)
ExtractionError(ExtractionError)
}
Constructors
-
DecodeError(dynamic.DecodeError)
-
ValidationError(String)
-
ExtractionError(ExtractionError)
pub type ParseResult(a) =
Result(a, ParseError)