Exception: Chutzen::Template::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Chutzen::Template::SyntaxError
- Defined in:
- lib/chutzen/template/syntax_error.rb
Overview
Raised when something went wrong while parsing a Chutzen template.
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(message, template: nil) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(message, template: nil) ⇒ SyntaxError
Returns a new instance of SyntaxError.
9 10 11 12 |
# File 'lib/chutzen/template/syntax_error.rb', line 9 def initialize(, template: nil) super() @template = template end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
7 8 9 |
# File 'lib/chutzen/template/syntax_error.rb', line 7 def template @template end |
Instance Method Details
#as_json ⇒ Object
14 15 16 |
# File 'lib/chutzen/template/syntax_error.rb', line 14 def as_json { 'error' => details } end |