- All Implemented Interfaces:
Serializable
,Comparable<RenderErrorCode>
,Constable
Symbolic constants for errors that may occur while populating or rendering a
template.
- Author:
- Ayco Holleman
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error occurred while retrieving the value for a template variable.The child sessions for a nested template were requested, but none were created yet.A non-existent nested template name was specified.A non-existent variable name was specified when callingRenderSession.set()
, or other methods taking a variable name as argument.RenderSession.populate1()
was called on a nested template, but it was not a template with exactly one variable.RenderSession.enable()
was called on a nested template, but it was not a text-only template.RenderSession.populate2()
was called on a nested template, but it was not a template with exactly two variables.The number of elements in the array orCollection
passed toRenderSession.populate()
differed from the number of repetitions fixed by the first call topopulate()
orrepeat()
.A call toRenderSession.repeat()
was made, but the number of repetitions had already been fixed, either by a previous call torepeat()
, or implicitly, via thepopupate()
method.A stringifier'sstringify
method threw aNullPointerException
, but stringifiers must be capable of stringifyingnull
.An unexpected error occurred while rendering the template. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderErrorCode
Returns the enum constant of this class with the specified name.static RenderErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_SUCH_VARIABLE
A non-existent variable name was specified when callingRenderSession.set()
, or other methods taking a variable name as argument. -
NO_SUCH_TEMPLATE
A non-existent nested template name was specified. -
NO_CHILD_SESSIONS
The child sessions for a nested template were requested, but none were created yet.- See Also:
-
ACCESS_EXCEPTION
An error occurred while retrieving the value for a template variable. -
NOT_TEXT_ONLY
RenderSession.enable()
was called on a nested template, but it was not a text-only template.- See Also:
-
NOT_ONE_VAR_TEMPLATE
RenderSession.populate1()
was called on a nested template, but it was not a template with exactly one variable.- See Also:
-
NOT_TWO_VAR_TEMPLATE
RenderSession.populate2()
was called on a nested template, but it was not a template with exactly two variables.- See Also:
-
STRINGIFIER_RETURNED_NULL
-
STRINGIFIER_NOT_NULL_RESISTANT
A stringifier'sstringify
method threw aNullPointerException
, but stringifiers must be capable of stringifyingnull
. -
REPETITIONS_FIXED
A call toRenderSession.repeat()
was made, but the number of repetitions had already been fixed, either by a previous call torepeat()
, or implicitly, via thepopupate()
method. -
REPETITION_MISMATCH
The number of elements in the array orCollection
passed toRenderSession.populate()
differed from the number of repetitions fixed by the first call topopulate()
orrepeat()
. -
UNEXPECTED_ERROR
An unexpected error occurred while rendering the template.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-