Class TemplateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.microsoft.semantickernel.exceptions.SKException
-
- com.microsoft.semantickernel.templateengine.semantickernel.TemplateException
-
- All Implemented Interfaces:
Serializable
public class TemplateException extends SKException
Exception thrown when a template error occurs.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateException.ErrorCodesError codes forTemplateException.
-
Constructor Summary
Constructors Constructor Description TemplateException(TemplateException.ErrorCodes error)Initializes a new instance of theTemplateExceptionclass with a provided error code.TemplateException(TemplateException.ErrorCodes errorCode, String message)Initializes a new instance of theTemplateExceptionclass with a provided error code.TemplateException(TemplateException.ErrorCodes errorCode, String message, Throwable innerException)Initializes a new instance of theTemplateExceptionclass with a provided error code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateException.ErrorCodesgetErrorCode()Gets the error code for this exception.-
Methods inherited from class com.microsoft.semantickernel.exceptions.SKException
build
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TemplateException
public TemplateException(@Nonnull TemplateException.ErrorCodes error)
Initializes a new instance of theTemplateExceptionclass with a provided error code.- Parameters:
error- The error code.
-
TemplateException
public TemplateException(@Nonnull TemplateException.ErrorCodes errorCode, @Nullable String message)
Initializes a new instance of theTemplateExceptionclass with a provided error code.- Parameters:
errorCode- The error code.message- The exception message.
-
TemplateException
public TemplateException(@Nonnull TemplateException.ErrorCodes errorCode, @Nullable String message, @Nullable Throwable innerException)
Initializes a new instance of theTemplateExceptionclass with a provided error code.- Parameters:
errorCode- The error code.message- The exception message.innerException- The exception that is the cause of the current exception.
-
-
Method Detail
-
getErrorCode
public TemplateException.ErrorCodes getErrorCode()
Gets the error code for this exception.- Returns:
- The error code.
-
-