ConfigurationException Class

public class ConfigurationException
extends SKCheckedException

An exception that is thrown when there is an error with the Semantic Kernel configuration.

Constructor Summary

Constructor Description
ConfigurationException(ConfigurationException.ErrorCodes error)

Creates a new instance of the ConfigurationException class.

ConfigurationException(ConfigurationException.ErrorCodes errorCode, String message)

Creates a new instance of the ConfigurationException class.

ConfigurationException(ConfigurationException.ErrorCodes errorCode, String message, Throwable innerException)

Creates a new instance of the ConfigurationException class.

Method Summary

Modifier and Type Method and Description
ErrorCodes getErrorCode()

Gets the error code.

Methods inherited from SKCheckedException

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Methods inherited from java.lang.Throwable

java.lang.Throwable.addSuppressed java.lang.Throwable.fillInStackTrace java.lang.Throwable.getCause java.lang.Throwable.getLocalizedMessage java.lang.Throwable.getMessage java.lang.Throwable.getStackTrace java.lang.Throwable.getSuppressed java.lang.Throwable.initCause java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.setStackTrace java.lang.Throwable.toString

Constructor Details

ConfigurationException

public ConfigurationException(ConfigurationException.ErrorCodes error)

Creates a new instance of the ConfigurationException class.

Parameters:

error - the error code

ConfigurationException

public ConfigurationException(ConfigurationException.ErrorCodes errorCode, String message)

Creates a new instance of the ConfigurationException class.

Parameters:

errorCode - the error code
message - the message

ConfigurationException

public ConfigurationException(ConfigurationException.ErrorCodes errorCode, String message, Throwable innerException)

Creates a new instance of the ConfigurationException class.

Parameters:

errorCode - the error code
message - the message
innerException - the inner exception

Method Details

getErrorCode

public ConfigurationException.ErrorCodes getErrorCode()

Gets the error code.

Returns:

the error code

Applies to