Exception: Grntest::ParseError
- Defined in:
- lib/grntest/error.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, content, reason) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(type, content, reason) ⇒ ParseError
Returns a new instance of ParseError.
32 33 34 35 36 37 |
# File 'lib/grntest/error.rb', line 32 def initialize(type, content, reason) @type = type @content = content @reason = reason super("failed to parse <#{@type}> content: #{reason}: <#{content}>") end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
31 32 33 |
# File 'lib/grntest/error.rb', line 31 def content @content end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
31 32 33 |
# File 'lib/grntest/error.rb', line 31 def reason @reason end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31 32 33 |
# File 'lib/grntest/error.rb', line 31 def type @type end |