AgentException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AgentException() |
Initializes a new instance of the AgentException class. |
AgentException(String) |
Initializes a new instance of the AgentException class with a specified error message. |
AgentException(String, Exception) |
Initializes a new instance of the AgentException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
AgentException()
Initializes a new instance of the AgentException class.
public AgentException ();
Public Sub New ()
Applies to
AgentException(String)
Initializes a new instance of the AgentException class with a specified error message.
public AgentException (string? message);
new Microsoft.SemanticKernel.Experimental.Agents.Exceptions.AgentException : string -> Microsoft.SemanticKernel.Experimental.Agents.Exceptions.AgentException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
AgentException(String, Exception)
Initializes a new instance of the AgentException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public AgentException (string? message, Exception? innerException);
new Microsoft.SemanticKernel.Experimental.Agents.Exceptions.AgentException : string * Exception -> Microsoft.SemanticKernel.Experimental.Agents.Exceptions.AgentException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference if no inner exception is specified.