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.
Inherited Members
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 |
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. |