Exception: Asciidoctor::Katex::KatexError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/asciidoctor/katex/errors.rb

Overview

Exception raised when KaTeX throw any error except ParseError.

Direct Known Subclasses

ParseError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, expression) ⇒ KatexError

Returns a new instance of KatexError

Parameters:

  • msg (#to_s)

    the message.

  • expression (String)

    the LaTeX expression that caused the error.


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

#expressionvoid (readonly)

Returns the value of attribute expression


8
9
10
# File 'lib/asciidoctor/katex/errors.rb', line 8

def expression
  @expression
end