Class MemoryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.microsoft.semantickernel.SKException
-
- com.microsoft.semantickernel.memory.MemoryException
-
- All Implemented Interfaces:
Serializable
public class MemoryException extends SKException
Exception thrown for errors related to memory logic.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMemoryException.ErrorCodesSemantic kernel memory error codes.
-
Constructor Summary
Constructors Constructor Description MemoryException(MemoryException.ErrorCodes error)Initializes a new instance of theMemoryExceptionclass with a provided error code.MemoryException(MemoryException.ErrorCodes errorCode, String message)Initializes a new instance of theMemoryExceptionclass with a provided error code and message.MemoryException(MemoryException.ErrorCodes errorCode, String message, Throwable innerException)Initializes a new instance of theMemoryExceptionclass with a provided error code, message, and inner exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemoryException.ErrorCodesgetErrorCode()Gets the error code for this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MemoryException
public MemoryException(@Nonnull MemoryException.ErrorCodes error)
Initializes a new instance of theMemoryExceptionclass with a provided error code.- Parameters:
error- The error code.
-
MemoryException
public MemoryException(@Nonnull MemoryException.ErrorCodes errorCode, @Nullable String message)
Initializes a new instance of theMemoryExceptionclass with a provided error code and message.- Parameters:
errorCode- The error code.message- A string that describes the error.
-
MemoryException
public MemoryException(@Nonnull MemoryException.ErrorCodes errorCode, @Nullable String message, @Nullable Throwable innerException)
Initializes a new instance of theMemoryExceptionclass with a provided error code, message, and inner exception.- Parameters:
errorCode- The error code.message- A string that describes the error.innerException- The exception that is the cause of the current exception.
-
-
Method Detail
-
getErrorCode
public MemoryException.ErrorCodes getErrorCode()
Gets the error code for this exception.- Returns:
- The error code for this exception.
-
-