Exception: Slamdown::ParseError

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

Overview

Reports a construction failure together with the diagnostic exposed by non-raising error modes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(diagnostic) ⇒ ParseError

Returns a new instance of ParseError.



9
10
11
12
# File 'lib/slamdown/errors.rb', line 9

def initialize(diagnostic)
	@diagnostic = diagnostic
	super(diagnostic.message)
end

Instance Attribute Details

#diagnosticObject (readonly)

Returns the value of attribute diagnostic.



7
8
9
# File 'lib/slamdown/errors.rb', line 7

def diagnostic
  @diagnostic
end