Enum SwiftExceptionCode
The SwiftExceptionCode classifies the nature of a SwiftException.
public enum SwiftExceptionCode
Fields
BadCharacter = 1A character that is not part of the SWIFT character set was encountered.
BadStart = 0The very first significant character of the input stream was neither a colon nor a dash. This probably is no SWIFT data at all.
CannotConvert = 16Thrown by SwiftMX when conversion is not possible.
CannotGenerate = 17Thrown when a valid SwiftField cannot be generated from the data.
GotchaBtxCRLF = 8A BTX CRLF sequence (@@) was found, but was not permitted by the given SwiftOptions.
GotchaNoLeadingCRLF = 9No leading CRLF sequence was found, but was required by the given SwiftOptions.
GotchaNonSwiftTag = 10A BTX Non-Swift Tag (NS) was found, but was not permitted by the given SwiftOptions.
MalformedBlock = 15The SwiftBlock reader encountered a malformed block structure.
MalformedCRLF = 5A malformed CRLF sequence was found (e.g. CR without LF, LF without CR).
MalformedDataSourceScheme = 4A malformed generic SWIFT field DataSourceScheme was encountered. Either it contains an illegal character or its length is wrong.
MalformedEndOfText = 6The End-of-Text marker is not followed by another field, another marker or the end of the input stream.
MalformedFieldContent = 11The content of the field could not be interpreted. When this exception code is present, then the property Field of the SwiftException is set to reference the SwiftField in question.
MalformedQualifier = 3A malformed generic SWIFT field Qualifier was encountered. Either it contains an illegal character or its length is wrong.
MalformedTag = 2A malformed SWIFT field Tag was encountered. Either it contains an illegal character or no colon delimiter was found.
UnexpectedEndOfStream = 7The input stream was exhausted in the middle of an incomplete SWIFT field.
UnexpectedField = 12The facing SWIFT field was not expected in the context of the current message type and processing state.
UnexpectedFieldContent = 13The content of the field could be parsed, but the parsed content is not allowed in the current context. When this exception code is present, then the property Field of the SwiftException is set to reference the SwiftField in question.
UnknownField = 14The tag of the facing SWIFT field is not known by the currently processed message type.