Class TooManyEarleyItemsGeneratedException
Exception thrown when the Earley parser generates too many completed items in a set.
Implements
Inherited Members
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 SourceTooManyEarleyItemsGeneratedException()
Initializes a new instance of the TooManyEarleyItemsGeneratedException class.
Declaration
public TooManyEarleyItemsGeneratedException()
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. |
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. |