Exception: Asciidoctor::Katex::KatexError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Asciidoctor::Katex::KatexError
- Defined in:
- lib/asciidoctor/katex/errors.rb
Overview
Exception raised when KaTeX throw any error except ‘ParseError`.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(msg, expression) ⇒ KatexError
constructor
A new instance of KatexError.
Constructor Details
#initialize(msg, expression) ⇒ KatexError
Returns a new instance of KatexError.
12 13 14 15 |
# File 'lib/asciidoctor/katex/errors.rb', line 12 def initialize(msg, expression) @expression = expression super(msg.to_s) end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
8 9 10 |
# File 'lib/asciidoctor/katex/errors.rb', line 8 def expression @expression end |