Package com.microsoft.semantickernel.ai
Class AIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.microsoft.semantickernel.SKException
-
- com.microsoft.semantickernel.ai.AIException
-
- All Implemented Interfaces:
Serializable
public class AIException extends SKException
AI logic exception- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIException.ErrorCodesError codes
-
Constructor Summary
Constructors Constructor Description AIException(AIException.ErrorCodes error)Initializes a new instance of theAIExceptionclass.AIException(AIException.ErrorCodes errorCode, String message)Initializes a new instance of theAIExceptionclass.AIException(AIException.ErrorCodes errorCode, String message, Throwable innerException)Initializes a new instance of theAIExceptionclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIException.ErrorCodesgetErrorCode()Gets the error code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AIException
public AIException(@Nonnull AIException.ErrorCodes error)
Initializes a new instance of theAIExceptionclass.- Parameters:
error- The error code.
-
AIException
public AIException(@Nonnull AIException.ErrorCodes errorCode, @Nullable String message)
Initializes a new instance of theAIExceptionclass.- Parameters:
errorCode- The error code.message- The message.
-
AIException
public AIException(@Nonnull AIException.ErrorCodes errorCode, @Nullable String message, @Nullable Throwable innerException)
Initializes a new instance of theAIExceptionclass.- Parameters:
errorCode- The error code.message- The message.innerException- The cause of the exception.
-
-
Method Detail
-
getErrorCode
public AIException.ErrorCodes getErrorCode()
Gets the error code.- Returns:
- The error code.
-
-