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.

##### Inheritance

object
Exception
PDFNetException

##### Implements

ISerializable

##### Inherited Members

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

###### Namespace: pdftron.Common

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class PDFNetException : Exception, ISerializable

### Constructors

#### PDFNetException()

##### Declaration

    public PDFNetException()

#### PDFNetException(IntPtr)

##### Declaration

    public PDFNetException(IntPtr e)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | e |

#### PDFNetException(string, string, int, string, string, ErrorCodes)

##### Declaration

    public PDFNetException(string cond_expr, string filename, int linenumber, string function, string message, PDFNetException.ErrorCodes errorcode)

##### Parameters

Type | Name | Description
--- | --- | ---
string | cond_expr |
string | filename |
int | linenumber |
string | function |
string | message |
PDFNetException.ErrorCodes | errorcode |

### Methods

#### GetCondExpr()

##### Declaration

    public string GetCondExpr()

##### Returns

Type | Description
--- | ---
string |

#### GetErrorCode()

##### Declaration

    public PDFNetException.ErrorCodes GetErrorCode()

##### Returns

Type | Description
--- | ---
PDFNetException.ErrorCodes |

#### GetFileName()

##### Declaration

    public string GetFileName()

##### Returns

Type | Description
--- | ---
string |

#### GetFullMessage()

##### Declaration

    public string GetFullMessage()

##### Returns

Type | Description
--- | ---
string |

#### GetFunction()

##### Declaration

    public string GetFunction()

##### Returns

Type | Description
--- | ---
string |

#### GetLineNumber()

##### Declaration

    public int GetLineNumber()

##### Returns

Type | Description
--- | ---
int |

#### GetMessage()

##### Declaration

    public string GetMessage()

##### Returns

Type | Description
--- | ---
string |

#### GetMessageOnly()

##### Declaration

    public string GetMessageOnly()

##### Returns

Type | Description
--- | ---
string |

### Implements

ISerializable