SKCheckedException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - com.
microsoft. semantickernel. exceptions. SKCheckedException
- com.
- java.
- java.
public class SKCheckedException
extends java.lang.Exception
Provides the base exception from which all CHECKED Semantic Kernel exceptions derive.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | SKCheckedException() |
Initializes a new instance of the |
| SKCheckedException(String message) |
Initializes a new instance of the |
|
| SKCheckedException(String message, Throwable cause) |
Initializes a new instance of the |
|
| SKCheckedException(Throwable cause) |
Initializes a new instance of the |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
SKChecked |
build(String message, Exception cause)
Forms a checked 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
SKCheckedException
protected SKCheckedException()
Initializes a new instance of the SKCheckedException class with a default message.
SKCheckedException
public SKCheckedException(String message)
Initializes a new instance of the SKCheckedException class with its message set to message.
Parameters:
SKCheckedException
public SKCheckedException(String message, Throwable cause)
Initializes a new instance of the SKCheckedException class with its message set to message.
Parameters:
SKCheckedException
public SKCheckedException(Throwable cause)
Initializes a new instance of the SKCheckedException class with its message set to null and the cause set to e.
Parameters:
Method Details
build
public static SKCheckedException build(String message, Exception cause)
Forms a checked 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: