Structure
MultipartParserError
Technical parsing error, such as malformed data or invalid characters. This is mainly used by
MultipartParser.struct MultipartParserError
Topics
Structures
struct ErrorTypeThe kind of failure aMultipartParserErrordescribes.
Instance Properties
var description: StringA description of the error, including its reason when one is available.var errorType: MultipartParserError.ErrorTypeThe kind of failure this error describes.var reason: String?A human-readable explanation of the failure, when one is available.
Type Properties
static let invalidBoundary: MultipartParserErrorThe message did not begin with the expected boundary.static let unexpectedEndOfFile: MultipartParserErrorThe message ended while a part was still being parsed.
Type Methods
static func backingSequenceError(reason: String) -> MultipartParserErrorTheAsyncSequencesupplying the message threw an error.static func invalidBody(reason: String) -> MultipartParserErrorA part’s body could not be parsed.static func invalidHeader(reason: String) -> MultipartParserErrorA part’s header fields could not be parsed.
Relationships
Conforms To
Swift.EquatableSwift.ErrorSwift.SendableSwift.SendableMetatype