InvalidAgentException Constructor(String,Exception)
Initializes a new instance of the InvalidAgentException class with a specified error message and a reference to the inner exception that is the cause of this exception.

C# Syntax

public InvalidAgentException( 
   string message,
   Exception exception
)

Parameters

message
The error message that explains the reason for the exception.
exception
The exception that is the cause of the current exception.