KernelException 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
KernelException() |
Initializes a new instance of the KernelException class. |
KernelException(String) |
Initializes a new instance of the KernelException class with a specified error message. |
KernelException(String, Exception) |
Initializes a new instance of the KernelException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
KernelException()
Initializes a new instance of the KernelException class.
public KernelException ();
Public Sub New ()
Applies to
KernelException(String)
Initializes a new instance of the KernelException class with a specified error message.
public KernelException (string? message);
new Microsoft.SemanticKernel.KernelException : string -> Microsoft.SemanticKernel.KernelException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
KernelException(String, Exception)
Initializes a new instance of the KernelException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public KernelException (string? message, Exception? innerException);
new Microsoft.SemanticKernel.KernelException : string * Exception -> Microsoft.SemanticKernel.KernelException
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.