SKException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
microsoft. semantickernel. exceptions. SKException
- com.
- java.
- java.
- java.
public class SKException
extends java.lang.RuntimeException
Provides the base exception from which all Semantic Kernel exceptions derive.
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | SKException() |
Initializes a new instance of the |
SKException(String message) |
Initializes a new instance of the |
|
SKException(String message, Throwable cause) |
Initializes a new instance of the |
|
SKException(Throwable cause) |
Initializes a new instance of the |
Method Summary
Modifier and Type | Method and Description |
---|---|
static SKException |
build(String message, Exception cause)
Forms an unchecked exception, if the exception is already an SK exception, it will be unwrapped and the cause extracted. |
protected static java.lang.String |
formatDefaultMessage(String errorMessage, String message)
Translate the error code into a default message format. |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
SKException
protected SKException()
Initializes a new instance of the SKException
class with a default message.
SKException
public SKException(String message)
Initializes a new instance of the SKException
class with its message set to message
.
Parameters:
SKException
public SKException(String message, Throwable cause)
Initializes a new instance of the SKException
class with its message set to message
.
Parameters:
SKException
public SKException(Throwable cause)
Initializes a new instance of the SKException
class with its message set to null
and the cause set to e
.
Parameters:
Method Details
build
public static SKException build(String message, Exception cause)
Forms an unchecked exception, if the exception is already an SK exception, it will be unwrapped and the cause extracted.
Parameters:
Returns:
formatDefaultMessage
protected static String formatDefaultMessage(String errorMessage, String message)
Translate the error code into a default message format.
Parameters:
Returns: