[]
Initializes a new instance of the DataSourceException class with a specified error message.
public DataSourceException(string message)
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
Initializes a new instance of the DataSourceException class.
public DataSourceException(DataSourceException.Codes code)
Type | Name | Description |
---|---|---|
DataSourceException.Codes | code | The code. |
Initializes a new instance of the DataSourceException class.
public DataSourceException(DataSourceException.Codes code, string message)
Type | Name | Description |
---|---|---|
DataSourceException.Codes | code | The code. |
string | message | The message. |
Initializes a new instance of the DataSourceException class.
public DataSourceException(DataSourceException.Codes code, Exception innerException)
Type | Name | Description |
---|---|---|
DataSourceException.Codes | code | The code. |
Exception | innerException | The inner exception. |
Initializes a new instance of the DataSourceException class with serialized data.
protected DataSourceException(SerializationInfo info, StreamingContext context)
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |