TemplateException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
microsoft. semantickernel. exceptions. SKException - com.
microsoft. semantickernel. templateengine. semantickernel. TemplateException
- com.
- com.
- java.
- java.
- java.
public class TemplateException
extends SKException
Exception thrown when a template error occurs.
Constructor Summary
| Constructor | Description |
|---|---|
| TemplateException(TemplateException.ErrorCodes error) |
Initializes a new instance of the |
| TemplateException(TemplateException.ErrorCodes errorCode, String message) |
Initializes a new instance of the |
| TemplateException(TemplateException.ErrorCodes errorCode, String message, Throwable innerException) |
Initializes a new instance of the |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Error |
getErrorCode()
Gets the error code for this exception. |
Methods inherited from SKException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
TemplateException
public TemplateException(TemplateException.ErrorCodes error)
Initializes a new instance of the TemplateException class with a provided error code.
Parameters:
TemplateException
public TemplateException(TemplateException.ErrorCodes errorCode, String message)
Initializes a new instance of the TemplateException class with a provided error code.
Parameters:
TemplateException
public TemplateException(TemplateException.ErrorCodes errorCode, String message, Throwable innerException)
Initializes a new instance of the TemplateException class with a provided error code.
Parameters:
Method Details
getErrorCode
public TemplateException.ErrorCodes getErrorCode()
Gets the error code for this exception.
Returns: