'Declaration
Public Function New( _ ByVal message As String, _ ByVal statusCode As UAStatusCode _ )
'Usage
Dim message As String Dim statusCode As UAStatusCode Dim instance As New UAStatusCodeException(message, statusCode)
public UAStatusCodeException( string message, UAStatusCode statusCode )
public: UAStatusCodeException( String^ message, UAStatusCode^ statusCode )
Parameters
- message
- The error message that explains the reason for the exception.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - statusCode
- A status code that describes the result of a service or operation.
Because the UAStatusCode has implicit conversions from System.Int64 and UASeverity, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a long integer (representing the internal status code value), or one of UASeverity enumeration members (representing the severity code) in place of this parameter, and the corresponding OPC UA status code will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the FromInt64 or FromUASeverity static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).