InvalidGrammarException Class
An exception that is thrown when a grammar is invalid.
public class InvalidGrammarException : Exception, ISerializable, _Exception
- Inheritance:
- System.Object System.Exception Object
Constructors
InvalidGrammarException()
Initializes a new instance of the InvalidGrammarException class.
public InvalidGrammarException()
InvalidGrammarException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidGrammarException class with serialized data.
protected InvalidGrammarException(SerializationInfo info, StreamingContext context)
| Parameter | Type | Description |
|---|---|---|
| info | System.Runtime.Serialization.SerializationInfo | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
| context | StreamingContext | The StreamingContext that contains contextual information about the source or destination. |
InvalidGrammarException(String)
Initializes a new instance of the InvalidGrammarException class with a specified error message.
public InvalidGrammarException(string message)
| Parameter | Type | Description |
|---|---|---|
| message | System.String | The error message that explains the reason for the exception. |
InvalidGrammarException(String, Exception)
Initializes a new instance of the InvalidGrammarException class
with a specified error message and a reference to the inner exception that is the cause of this exception.
public InvalidGrammarException(string message, Exception innerException)
| Parameter | Type | Description |
|---|---|---|
| message | System.String | The error message that explains the reason for the exception. |
| innerException | System.Exception | The exception that is the cause of the current exception. |
Inherited Members
- System.Exception.GetBaseException()
- System.Exception.ToString()
- System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
- System.Exception.GetType()
- System.Exception.Message
- System.Exception.Data
- System.Exception.InnerException
- System.Exception.TargetSite
- System.Exception.StackTrace
- System.Exception.HelpLink
- System.Exception.Source
- Exception.HResult
- System.Exception.SerializeObjectState
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.MemberwiseClone()