Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > IncorrectPasswordException Class
The exception that is thrown when the library tries to open an encrypted PDF with an incorrect password or without a password.

Inheritance Hierarchy

System.Object
  System.Exception
    BitMiracle.Docotic.Pdf.PdfException
      BitMiracle.Docotic.Pdf.IncorrectPasswordException

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[SerializableAttribute]
public class IncorrectPasswordException : PdfException
VB
<SerializableAttribute>
Public Class IncorrectPasswordException
	Inherits PdfException

The IncorrectPasswordException type exposes the following members.

Constructors

  NameDescription
Public methodIncorrectPasswordException()
Initializes a new instance of the IncorrectPasswordException class.
Public methodIncorrectPasswordException(String)
Initializes a new instance of the IncorrectPasswordException class.
Protected methodIncorrectPasswordException(SerializationInfo, StreamingContext)
Initializes a new instance of the IncorrectPasswordException class.
Public methodIncorrectPasswordException(String, Exception)
Initializes a new instance of the IncorrectPasswordException class.

Properties

  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyHelpLink (Inherited from Exception.)
Protected 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.)

Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectData (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)

Remarks

The Message contains more info about the cause of the exception.

See Also