NoDbNameException class | QSYS API Reference Guide
Estimated reading time: 2 minutes
The NoDbNameException class is a custom exception class that is thrown when a database name is not provided where it is required.
Namespace: ASNA.DataGate.Common Assembly: ASNA.QSys.DataGate.Client.dll
Inheritance: Object –> Exception –> dgException
Constructors
Name | Description |
---|---|
NoDbNameException() | Initializes a new instance of the NoDbNameException class. |
NoDbNameException(String) | Initializes a new instance of the NoDbNameException class with a specified database name. |
NoDbNameException(String, Exception) | Initializes a new instance of the NoDbNameException class with a specified database name and a reference to the inner exception that is the cause of this exception. |
NoDbNameException()
Initializes a new instance of the NoDbNameException class.
NoDbNameException()
NoDbNameException(String)
Initializes a new instance of the NoDbNameException class with a specified database name.
NoDbNameException(String)
Parameters
Type | Parameter name | Description |
---|---|---|
String | dbname | The name of the database that caused the exception. |
NoDbNameException(String, Exception)
Initializes a new instance of the NoDbNameException class with a specified database name and a reference to the inner exception that is the cause of this exception.
NoDbNameException(String, Exception)
Parameters
Type | Parameter name | Description |
---|---|---|
String | dbname | The name of the database that caused the exception. |
Exception | inner | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
Methods
Signature | Description |
---|---|
FormatMessage(IFormatProvider, String) | Formats the error message and the database name into a single string for logging or displaying to the user. |
string FormatMessage(IFormatProvider provider, string msg)
Formats the error message and the database name into a single string for logging or displaying to the user.
string FormatMessage(IFormatProvider provider, string msg)
Parameters
Type | Parameter name | Description |
---|---|---|
IFormatProvider | provider | An object that supplies culture-specific formatting information. |
String | msg | The error message. |
Returns
Type | Description |
---|---|
String | A formatted string containing the error message and database name. |