Show / Hide Table of Contents

Class TooManyEarleyItemsGeneratedException

Exception thrown when the Earley parser generates too many completed items in a set.

Inheritance
object
Exception
TooManyEarleyItemsGeneratedException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
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: EarleyParser
Assembly: EarleyParser.dll
Syntax
[Serializable]
public class TooManyEarleyItemsGeneratedException : Exception, ISerializable
Remarks

This exception is used to prevent excessive memory usage when parsing complex or ambiguous grammars. It is typically thrown when the number of completed items in a set exceeds a predefined threshold (e.g., 10000+ items).

Constructors

| Edit this page View Source

TooManyEarleyItemsGeneratedException()

Initializes a new instance of the TooManyEarleyItemsGeneratedException class.

Declaration
public TooManyEarleyItemsGeneratedException()
| Edit this page View Source

TooManyEarleyItemsGeneratedException(string)

Initializes a new instance of the TooManyEarleyItemsGeneratedException class with a specified error message.

Declaration
public TooManyEarleyItemsGeneratedException(string message)
Parameters
Type Name Description
string message

The message that describes the error.

| Edit this page View Source

TooManyEarleyItemsGeneratedException(string, Exception)

Initializes a new instance of the TooManyEarleyItemsGeneratedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public TooManyEarleyItemsGeneratedException(string message, Exception innerException)
Parameters
Type Name Description
string message

The message that describes the error.

Exception innerException

The exception that is the cause of the current exception.

Implements

ISerializable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX