Exception: CommonMarker::RenderError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/commonmarker/errors.rb

Constant Summary collapse

PREAMBLE =
'There was an error rendering'

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ RenderError

Returns a new instance of RenderError.



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

def initialize(error)
  super("#{PREAMBLE}: #{error.class} #{error.message}")
end