ParseError
public enum ParseError : Error, Equatable
Parse related errors when creating or parsing MavlinkCommand
s.
-
A generic parse error indicating an unspecific parse or creation failure.
Declaration
Swift
case generic
-
An error indicating that a provided parameter to the
MavlinkCommand
was either not provided or was invalid (out of range or unexpected value). The associated value should pinpoint to the exact problem.Declaration
Swift
case invalidParameter(_: String)
Parameters
explanation
A human readable string that should describe what actually was the encountered issue.
-
An error indicating that a Mavlink line, that could be used to represent a MavlinkCommand, was ill-formed.
The line could have an incorrect number of tokens or the token separator used was not the tab character (\t). The associated value should pinpoint to the exact problem.
Declaration
Swift
case invalidLine(_: String)
Parameters
explanation
A human readable string that should describe what actually was the encountered issue.
-
An error indicating that the creation of
MavlinkCommand
throughMavlinkCommand.create(rawType:parameters:)
orOtherMavlinkCommand
did not include all required parameters.Declaration
Swift
case incorrectNumberOfParameters(_: String)
Parameters
explanation
A human readable string that should describe what actually was the encountered issue.
-
An error indicating the
MavlinkComamnd
version header is in an unexpected format.Declaration
Swift
case invalidVersion
-
Declaration
Swift
public static func == (lhs: ParseError, rhs: ParseError) -> Bool