TemplateException Class

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 class with a provided error code.

TemplateException(TemplateException.ErrorCodes errorCode, String message)

Initializes a new instance of the TemplateException class with a provided error code.

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

Initializes a new instance of the TemplateException class with a provided error code.

Method Summary

Modifier and Type Method and Description
ErrorCodes getErrorCode()

Gets the error code for this exception.

Methods inherited from SKException

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

TemplateException

public TemplateException(TemplateException.ErrorCodes error)

Initializes a new instance of the TemplateException class with a provided error code.

Parameters:

error - The error code.

TemplateException

public TemplateException(TemplateException.ErrorCodes errorCode, String message)

Initializes a new instance of the TemplateException class with a provided error code.

Parameters:

errorCode - The error code.
message - The exception message.

TemplateException

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

Initializes a new instance of the TemplateException class 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 Details

getErrorCode

public TemplateException.ErrorCodes getErrorCode()

Gets the error code for this exception.

Returns:

The error code.

Applies to