dgException Constructors
Estimated reading time: 3 minutes
Definition
Namespace: ASNA.DataGate.Common
Assembly: ASNA.QSys.DataGate.Client.dll
Initializes a new instance of the dgException class.
Overloads
| Name | Description |
|---|---|
| dgException() | Initializes a new instance of the dgException class. |
| dgException(String) | Initializes a new instance of the dgException class with a specified error message. |
| dgException(String, Exception) | Initializes a new instance of the dgException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| dgException(dgErrorNumber, Int32, dgErrorClass, String, String, Exception) | Create a dgException with the passed error code, system error code,error class, and text. |
| dgException(dgErrorNumber, Int32, dgErrorClass, String, String) | Create a dgException with the passed error code, system error code,error class, and text. |
| dgException(dgErrorNumber) | Create a dgException with the passed error code. |
| dgException(dgErrorNumber, Exception) | Create a dgException with the passed error code and exception. |
dgException()
Initializes a new instance of the dgException class.
dgException()
dgException(String)
Initializes a new instance of the dgException class with a specified error message.
dgException(String)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| String | message | The message that describes the error. |
dgException(String, Exception)
Initializes a new instance of the dgException class with a specified error message and a reference to the inner exception that is the cause of this exception.
dgException(String, Exception)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| String | message | The error message that explains the reason for the exception. |
| Exception | inner | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
dgException(dgErrorNumber, Int32, dgErrorClass, String, String, Exception)
Create a dgException with the passed error code, system error code,error class, and text. This dgException is constructed and thrownwhen the database server program returns an error.
dgException(dgErrorNumber, Int32, dgErrorClass, String, String, Exception)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| dgErrorNumber | error | The error code. |
| Int32 | systemError | The system error code. |
| dgErrorClass | errorClass | The class of the error. |
| String | message | The error message. |
| String | text | The error text. |
| Exception | inner | The inner exception. |
dgException(dgErrorNumber, Int32, dgErrorClass, String, String)
Create a dgException with the passed error code, system error code,error class, and text. This dgException is constructed and thrownwhen the database server program returns an error.
dgException(dgErrorNumber, Int32, dgErrorClass, String, String)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| dgErrorNumber | error | The error code. |
| Int32 | systemError | The system error code. |
| dgErrorClass | errorClass | The class of the error. |
| String | message | The error message. |
| String | text | The error text. |
dgException(dgErrorNumber)
Create a dgException with the passed error code.
dgException(dgErrorNumber)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| dgErrorNumber | error | The error code. |
dgException(dgErrorNumber, Exception)
Create a dgException with the passed error code and exception.
dgException(dgErrorNumber, Exception)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| dgErrorNumber | error | The error code. |
| Exception | e | The Exception object. |