Show / Hide Table of Contents

# Class PDFNetException

PDFNetException is derived from the standard exception class and it is a superclass for all PDFNet library exceptions.

PDFNetException and its subclasses have two constructors: one that takes no arguments and one that takes a string argument that can be used to report an error message.

##### Inheritance

object
Exception
PDFNetException

##### Implements

ISerializable
_Exception

##### Inherited Members

Exception.GetBaseException()
Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()

###### Namespace: pdftron.Common

###### Assembly: PDFNet.dll

##### Syntax

    public class PDFNetException : Exception, ISerializable, _Exception

### Constructors

#### PDFNetException()

Instantiates a default `PDFNetException` object

##### Declaration

    public PDFNetException()

#### PDFNetException(Exception)

Instantiates from `System::Exception` object

##### Declaration

    public PDFNetException(Exception e)

##### Parameters

Type | Name | Description
--- | --- | ---
Exception | e | a `System::Exception` object

#### PDFNetException(sbyte*)

##### Declaration

    public PDFNetException(sbyte* s)

##### Parameters

Type | Name | Description
--- | --- | ---
sbyte* | s |

#### PDFNetException(Exception*)

##### Declaration

    public PDFNetException(Exception* e)

##### Parameters

Type | Name | Description
--- | --- | ---
Exception* | e |

### Methods

#### GetErrorCode()

Get the error code.

##### Declaration

    public PDFNetException.ErrorCodes GetErrorCode()

##### Returns

Type | Description
--- | ---
PDFNetException.ErrorCodes | the error code of this Exception object.

#### GetFullMessage()

Get the detailed error message.

##### Declaration

    public string GetFullMessage()

##### Returns

Type | Description
--- | ---
string | the detailed error string of this Exception object.

#### GetMessage()

Get the detailed error message.

##### Declaration

    public string GetMessage()

##### Returns

Type | Description
--- | ---
string | the error message string of this Exception object.

#### GetMessageOnly()

Get the error message.

##### Declaration

    public string GetMessageOnly()

##### Returns

Type | Description
--- | ---
string | the error message string of this Exception object.

### Implements

ISerializable
_Exception