The SwiftExceptionCode classifies the nature of a SwiftException.
public enum SwiftExceptionCode
A character that is not part of the SWIFT character set was encountered.
The very first significant character of the input stream was neither a colon nor a dash. This probably is no SWIFT data at all.
Thrown by SwiftMX when conversion is not possible.
A BTX CRLF sequence (@@) was found, but was not permitted by the given SwiftOptions.
No leading CRLF sequence was found, but was required by the given SwiftOptions.
A BTX Non-Swift Tag (NS) was found, but was not permitted by the given SwiftOptions.
The SwiftBlock reader encountered a malformed block structure.
A malformed CRLF sequence was found (e.g. CR without LF, LF without CR).
A malformed generic SWIFT field DataSourceScheme was encountered. Either it contains an illegal character or its length is wrong.
The End-of-Text marker is not followed by another field, another marker or the end of the input stream.
A malformed generic SWIFT field Qualifier was encountered. Either it contains an illegal character or its length is wrong.
A malformed SWIFT field Tag was encountered. Either it contains an illegal character or no colon delimiter was found.
The input stream was exhausted in the middle of an incomplete SWIFT field.
The facing SWIFT field was not expected in the context of the current message type and processing state.
The 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.
The tag of the facing SWIFT field is not known by the currently processed message type.