Files
swift-nio-imap/Sources/NIOIMAPCore/Base64/DecodingError.swift
T
David EvansandGeorge Barnett 475c53f168 Documentation PR part 1 (#373)
* Document AppendData

* Document AppendMessage

* Document AppendOptions

* Document BodyStructure.Disposition

* Document BodyStructure.DispositionAndLanguage

* Document BodyStructure.Encoding

* Document BodyStructure helper typoes/conformances

* Document BodyStructure.Singlepart

* Document BodyStructure.Singlepart.Kind

* Document BodyStructure.Singlepart.Message

* Document BodyStructure.Singlepart.Text

* Document BodyStructure.Singlepart.Extension

* Document Command

* Document TaggedCommand

* Make base64 non-public

* Fix sanity

* Remove doc tracking

* Apply suggestions from code review

Co-authored-by: George Barnett <gbarnett@apple.com>

Co-authored-by: George Barnett <gbarnett@apple.com>
2020-12-03 14:02:22 +00:00

12 lines
286 B
Swift

// Courtesy of @fabianfett
// https://github.com/fabianfett/swift-base64-kit
// minor modifications to remove public attributes
enum DecodingError: Error, Equatable {
case invalidLength
case invalidCharacter(UInt8)
case unexpectedPaddingCharacter
case unexpectedEnd
}