Exception: Slamdown::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Slamdown::ParseError
- 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
-
#diagnostic ⇒ Object
readonly
Returns the value of attribute diagnostic.
Instance Method Summary collapse
-
#initialize(diagnostic) ⇒ ParseError
constructor
A new instance of ParseError.
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.) end |
Instance Attribute Details
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic.
7 8 9 |
# File 'lib/slamdown/errors.rb', line 7 def diagnostic @diagnostic end |