Package liqp

Enum Class TemplateParser.ErrorMode

All Implemented Interfaces:
Serializable, Comparable<TemplateParser.ErrorMode>, Constable
Enclosing class:
TemplateParser

public static enum TemplateParser.ErrorMode extends Enum<TemplateParser.ErrorMode>
Equivalent of Liquid::Template.error_mode = :strict # Raises a SyntaxError when invalid syntax is used Liquid::Template.error_mode = :warn # Adds strict errors to template.errors but continues as normal Liquid::Template.error_mode = :lax # The default mode, accepts almost anything. where usage is like: template = Liquid::Template.parse('', error_mode: :warn )
  • Enum Constant Details

  • Method Details

    • values

      public static TemplateParser.ErrorMode[] 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

      public static TemplateParser.ErrorMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null