Class ConfigurationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microsoft.semantickernel.exceptions.SKCheckedException
-
- com.microsoft.semantickernel.exceptions.ConfigurationException
-
- All Implemented Interfaces:
Serializable
public class ConfigurationException extends SKCheckedException
An exception that is thrown when there is an error with the Semantic Kernel configuration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigurationException.ErrorCodesErrorCodes for this exception.
-
Constructor Summary
Constructors Constructor Description ConfigurationException(ConfigurationException.ErrorCodes error)Creates a new instance of theConfigurationExceptionclass.ConfigurationException(ConfigurationException.ErrorCodes errorCode, String message)Creates a new instance of theConfigurationExceptionclass.ConfigurationException(ConfigurationException.ErrorCodes errorCode, String message, Throwable innerException)Creates a new instance of theConfigurationExceptionclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationException.ErrorCodesgetErrorCode()Gets the error code.-
Methods inherited from class com.microsoft.semantickernel.exceptions.SKCheckedException
build
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConfigurationException
public ConfigurationException(@Nonnull ConfigurationException.ErrorCodes error)
Creates a new instance of theConfigurationExceptionclass.- Parameters:
error- the error code
-
ConfigurationException
public ConfigurationException(@Nonnull ConfigurationException.ErrorCodes errorCode, @Nullable String message)
Creates a new instance of theConfigurationExceptionclass.- Parameters:
errorCode- the error codemessage- the message
-
ConfigurationException
public ConfigurationException(@Nonnull ConfigurationException.ErrorCodes errorCode, @Nullable String message, @Nullable Throwable innerException)
Creates a new instance of theConfigurationExceptionclass.- Parameters:
errorCode- the error codemessage- the messageinnerException- the inner exception
-
-
Method Detail
-
getErrorCode
public ConfigurationException.ErrorCodes getErrorCode()
Gets the error code.- Returns:
- the error code
-
-