Exception: Slamdown::ConversionError

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

Overview

Reports a conversion failure. Conversion stages populate this error as they are implemented.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(diagnostic) ⇒ ConversionError

Returns a new instance of ConversionError.



19
20
21
22
# File 'lib/slamdown/errors.rb', line 19

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

Instance Attribute Details

#diagnosticObject (readonly)

Returns the value of attribute diagnostic.



17
18
19
# File 'lib/slamdown/errors.rb', line 17

def diagnostic
  @diagnostic
end