PlanCreationException 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
PlanCreationException() |
Initializes a new instance of the PlanCreationException class. |
PlanCreationException(String) |
Initializes a new instance of the PlanCreationException class with a specified error message. |
PlanCreationException(String, Exception) |
Initializes a new instance of the PlanCreationException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
PlanCreationException(String, String, ChatMessageContent, Exception) |
Initializes a new instance of the PlanCreationException class. Exception thrown when a plan cannot be created containing the prompt and model results. |
PlanCreationException()
Initializes a new instance of the PlanCreationException class.
public PlanCreationException ();
Public Sub New ()
Applies to
PlanCreationException(String)
Initializes a new instance of the PlanCreationException class with a specified error message.
public PlanCreationException (string? message);
new Microsoft.SemanticKernel.Planning.PlanCreationException : string -> Microsoft.SemanticKernel.Planning.PlanCreationException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
PlanCreationException(String, Exception)
Initializes a new instance of the PlanCreationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public PlanCreationException (string? message, Exception? innerException);
new Microsoft.SemanticKernel.Planning.PlanCreationException : string * Exception -> Microsoft.SemanticKernel.Planning.PlanCreationException
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.
Applies to
PlanCreationException(String, String, ChatMessageContent, Exception)
Initializes a new instance of the PlanCreationException class. Exception thrown when a plan cannot be created containing the prompt and model results.
public PlanCreationException (string? message, string? createPlanPrompt, Microsoft.SemanticKernel.ChatMessageContent? modelResults, Exception? innerException = default);
new Microsoft.SemanticKernel.Planning.PlanCreationException : string * string * Microsoft.SemanticKernel.ChatMessageContent * Exception -> Microsoft.SemanticKernel.Planning.PlanCreationException
Public Sub New (message As String, createPlanPrompt As String, modelResults As ChatMessageContent, Optional innerException As Exception = Nothing)
Parameters
- message
- String
The error message that explains the reason for the exception.
- createPlanPrompt
- String
The prompt template used to generate the plan.
- modelResults
- ChatMessageContent
Completion results from the model; generally, this is the proposed plan.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference if no inner exception is specified.