3 using System.Runtime.Serialization;
5 namespace Mercury.Exceptions
38 : base(message, inner)
71 : base(
"Invalid symbol '" + symbol.ToString() +
"'")
92 : base(
"Invalid rule '" + rule.ToString() +
"'"
93 + (reason != null ?
": " + reason :
""))
113 : base(
"Invalid edge '" + edge.ToString() +
"'")
InvalidRuleException(Rule rule, string reason=null)
Initializes a new instance of the InvalidRuleException class.
InvalidEdgeException(Edge edge)
Initializes a new instance of the InvalidEdgeException class.
SyntaxException(string message)
Initializes a new instance of the SyntaxException class with a message that describes the error...
InvalidSymbolException(Symbol symbol)
Initializes a new instance of the InvalidSymbolException class.
Represents an edge in the chart created by the ChartParser. This is an immutable class. The Edge contains four values:
SyntaxException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the SyntaxException class.
An exception thrown by the Mercury library.
An exception has been thrown
An exception thrown when attempting to create an invalid Mercury.Syntax.Rule instance.
An exception thrown when attempting to create an invalid Mercury.Syntax.Symbol instance.
An exception thrown when attempting to create an invalid Mercury.Parser.Edge instance.
Represents a Context-Free Grammar rule. This is an immutable class.
SyntaxException(string message, Exception inner)
Initializes a new instance of the SyntaxException class.
SyntaxException()
Initializes a new instance of the SyntaxException class.
Represents a single symbol of the grammar. This is an immutable class. For a symbol name to be val...
An exception thrown when something wrong happens in the Mercury.Syntax