New to Telerik Document Processing? Start a free 30-day trial

Thrown when document nesting exceeds the supported depth or remaining call stack is insufficient to continue processing.

Documents are processed by recursive descent over their element tree. Without an upper bound on the nesting depth, a malformed or maliciously crafted document can exhaust the call stack and terminate the process with a StackOverflowException, which cannot be caught. This exception replaces that unrecoverable failure with a recoverable one.

Definition

Namespace:Telerik.Documents.Exceptions

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

C#
public class NestingDepthExceededException : Exception, ISerializable

Inheritance: objectExceptionNestingDepthExceededException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTraceException.SerializeObjectState...

Constructors

Create an instance indicating the maximum supported nesting depth was exceeded.

C#
public NestingDepthExceededException()

Initializes a new instance of the NestingDepthExceededException class.

C#
protected NestingDepthExceededException(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The info.

contextStreamingContext

The context.

Create an instance with a specific error message and inner exception.

C#
public NestingDepthExceededException(string message, Exception cause)
Parameters:messagestring

The message.

causeException

The cause.

Create an instance with a specific error message.

C#
public NestingDepthExceededException(string message)
Parameters:messagestring

The message.