Class GridException
Base class for exceptions thrown inside the grid.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridException : ApplicationException, ISerializable, _Exception
Constructors
GridException()
Initializes a new instance of the GridException class.
Declaration
public GridException()
GridException(SerializationInfo, StreamingContext)
Initializes a new GridException from a serialization stream.
Declaration
protected GridException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | An object that holds all the data needed to serialize or de_serialize this instance. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream specified by info. |
GridException(String)
Initializes a new instance of the GridException class with a specified error message.
Declaration
public GridException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
GridException(String, GridControlBase)
Initializes a new instance of the GridException class with a specified error message and a reference to a grid.
Declaration
public GridException(string message, GridControlBase grid)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
GridControlBase | grid | A reference to a grid. |
GridException(String, GridControlBase, Exception)
Initializes a new instance of the GridException class with a specified error message, a reference to a grid, and a reference to the inner exception that is the root cause of this exception.
Declaration
public GridException(string message, GridControlBase grid, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
GridControlBase | grid | A reference to a grid. |
System.Exception | inner | The exception that is the cause of the current exception. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. |
GridException(String, Exception)
Initializes a new instance of the GridException class with a specified error message and a reference to the inner exception that is the root cause of this exception.
Declaration
public GridException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
System.Exception | inner | The exception that is the cause of the current exception. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. |
Properties
Grid
Gets a reference to a GridControlBase.
Declaration
public GridControlBase Grid { get; }
Property Value
Type |
---|
GridControlBase |
Message
Gets a message that represents the current exception.
Declaration
public override string Message { get; }
Property Value
Type |
---|
System.String |
Overrides
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the System.RunTime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.RunTime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.RunTime.Serialization.StreamingContext that contains contextual information about the source or destination. |