Class SKCheckedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microsoft.semantickernel.exceptions.SKCheckedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConfigurationException,ServiceNotFoundException
public class SKCheckedException extends Exception
Provides the base exception from which all CHECKED Semantic Kernel exceptions derive.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SKCheckedException(String message)Initializes a new instance of theSKCheckedExceptionclass with its message set tomessage.SKCheckedException(String message, Throwable cause)Initializes a new instance of theSKCheckedExceptionclass with its message set tomessage.SKCheckedException(Throwable e)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SKCheckedExceptionbuild(String message, Exception e)Forms a checked exception, if the exception is already an SK exception, it will be unwrapped and the cause extracted.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SKCheckedException
public SKCheckedException(@Nullable String message)
Initializes a new instance of theSKCheckedExceptionclass with its message set tomessage.- Parameters:
message- A string that describes the error.
-
SKCheckedException
public SKCheckedException(@Nullable String message, @Nullable Throwable cause)
Initializes a new instance of theSKCheckedExceptionclass with its message set tomessage.- Parameters:
message- A string that describes the error.cause- The exception that is the cause of the current exception.
-
SKCheckedException
public SKCheckedException(Throwable e)
-
-
Method Detail
-
build
public static SKCheckedException build(String message, @Nullable Exception e)
Forms a checked exception, if the exception is already an SK exception, it will be unwrapped and the cause extracted.- Parameters:
message- The message to be displayede- The exception to be thrown- Returns:
- A checked exception
-
-