Skip to main content

EmptyDocumentException

Version: 6.0

cete.dynamicpdf.emptydocumentexception

EmptyDocumentException​

The exception that is thrown for an empty DynamicPDF Generator document.

public class EmptyDocumentException : GeneratorException, ISerializable
Public Class EmptyDocumentException
Inherits GeneratorException
Implements ISerializable

Inheritance: Object → Exception → GeneratorException → EmptyDocumentException

Implements: ISerializable

Licensing​

This class is a DynamicPDF Generator Community Edition feature.

Constructors​

EmptyDocumentException(String)​

Initializes a new instance of the EmptyDocumentException class.

public EmptyDocumentException(string message)
Public Sub New (message As String)

Parameters​

A String that describes the error.

Properties​

Data​

Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception)

public IDictionary Data { get; }
Public Property Data As IDictionary

Property Value​

IDictionary

Gets or sets a link to the help file associated with this exception. (Inherited from Exception)

public string HelpLink { get; set; }
Public Property HelpLink As String

Property Value​

String

HResult​

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception)

public int HResult { get; }
Public ReadOnly Property HResult As Int32

Property Value​

Int32

InnerException​

Gets the Exception instance that caused the current exception. (Inherited from Exception)

public Exception InnerException { get; }
Public Property InnerException As Exception

Property Value​

Exception

Message​

Gets a message that describes the current exception. (Inherited from Exception)

public string Message { get; }
Public Property Message As String

Property Value​

String

Source​

Gets or sets the name of the application or the object that causes the error. (Inherited from Exception)

public string Source { get; set; }
Public Property Source As String

Property Value​

String

Exceptions​

The object must be a runtime Reflection object

StackTrace​

Gets a string representation of the immediate frames on the call stack. (Inherited from Exception)

public string StackTrace { get; }
Public Property StackTrace As String

Property Value​

String

TargetSite​

Gets the method that throws the current exception. (Inherited from Exception)

public MethodBase TargetSite { get; }
Public Property TargetSite As MethodBase

Property Value​

MethodBase

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetBaseException()​

When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception)

public Exception GetBaseException()
Function GetBaseException() As Exception

Returns​

The first exception thrown in a chain of exceptions. If the InnerException property of the current exception is a null reference (Nothing in Visual Basic), this property returns the current exception.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetObjectData(SerializationInfo, StreamingContext)​

When overridden in a derived class, sets the SerializationInfo with information about the exception. (Inherited from Exception)

public void GetObjectData(SerializationInfo info, StreamingContext context)
Sub GetObjectData(info As SerializationInfo, context As StreamingContext)

Parameters​

The SerializationInfo that holds the serialized object data about the exception being thrown.

The StreamingContext that contains contextual information about the source or destination.

Exceptions​

The parameter is a null reference (Nothing in Visual Basic).

GetType()​

Gets the runtime type of the current instance. (Inherited from Exception)

public Type GetType()
Function GetType() As Type

Returns​

A Type object that represents the exact runtime type of the current instance.

ToString()​

Creates and returns a string representation of the current exception. (Inherited from Exception)

public string ToString()
Function ToString() As String

Returns​

A string representation of the current exception.

See Also​

ceTe.DynamicPDF