Click or drag to resize
MimeKit

ParseException Class

A Parse exception as thrown by the various Parse methods in MimeKit.
Inheritance Hierarchy
SystemObject
  SystemException
    SystemSystemException
      SystemFormatException
        MimeKitParseException

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
[SerializableAttribute]
public class ParseException : FormatException

The ParseException type exposes the following members.

Constructors
 NameDescription
Protected methodParseException(SerializationInfo, StreamingContext) Initialize a new instance of the ParseException class.
Public methodParseException(String, Int32, Int32) Initialize a new instance of the ParseException class.
Public methodParseException(String, Int32, Int32, Exception) Initialize a new instance of the ParseException class.
Top
Properties
 NameDescription
Public propertyData
(Inherited from Exception)
Public propertyErrorIndex Get the index of the byte that caused the error.
Public propertyHelpLink
(Inherited from Exception)
Public propertyHResult
(Inherited from Exception)
Public propertyInnerException
(Inherited from Exception)
Public propertyMessage
(Inherited from Exception)
Public propertySource
(Inherited from Exception)
Public propertyStackTrace
(Inherited from Exception)
Public propertyTargetSite
(Inherited from Exception)
Public propertyTokenIndex Get the byte index of the token that was malformed.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetBaseException
(Inherited from Exception)
Public methodGetHashCode
(Inherited from Object)
Public methodGetObjectData When overridden in a derived class, sets the SerializationInfo with information about the exception.
(Overrides ExceptionGetObjectData(SerializationInfo, StreamingContext))
Public methodGetType
(Inherited from Exception)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodToString
(Inherited from Exception)
Top
Events
 NameDescription
Protected eventSerializeObjectState
(Inherited from Exception)
Top
Remarks
A ParseException can be thrown by any of the Parse() methods in MimeKit. Each exception instance will have a TokenIndex which marks the byte offset of the token that failed to parse as well as a ErrorIndex which marks the byte offset where the error occurred.
See Also