InfoConnect for Unisys
Attachmate.Reflection.Emulation.Common Namespace / APIException Class / APIException Constructor / APIException Constructor(ErrorCode,String)
Indicates the error condition.
The message that describes the error.


In This Topic
    APIException Constructor(ErrorCode,String)
    In This Topic
    Initializes a new instance of the Attachmate.Reflection.Emulation.Common.APIException class with a specified error message.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal errorCode As ErrorCode, _
       ByVal message As String _
    )
    'Usage
     
    
    Dim errorCode As ErrorCode
    Dim message As String
     
    Dim instance As New APIException(errorCode, message)
    public APIException( 
       ErrorCode errorCode,
       string message
    )

    Parameters

    errorCode
    Indicates the error condition.
    message
    The message that describes the error.
    See Also