InvalidAgentException Constructor(Int32,String)
Initializes a new instance of the InvalidAgentException class with a specified error message and an error code associated with this exception.
C# Syntax
public InvalidAgentException( 
   int errorCode,
   string message
)

Parameters

errorCode
The error code associated with this exception.
message
The error message that explains the reason for the exception.