Exception: Pure::ParseEntityError
- Inherits:
-
ParseError
- Object
- StandardError
- Error
- ExtractionTimeError
- ParseError
- Pure::ParseEntityError
- Defined in:
- lib/pure/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
Attributes inherited from ExtractionTimeError
Instance Method Summary collapse
- #custom_message ⇒ Object
-
#initialize(file, line, entity) ⇒ ParseEntityError
constructor
A new instance of ParseEntityError.
Constructor Details
#initialize(file, line, entity) ⇒ ParseEntityError
Returns a new instance of ParseEntityError.
44 45 46 47 |
# File 'lib/pure/error.rb', line 44 def initialize(file, line, entity) @entity = entity super(file, line) end |
Instance Attribute Details
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
42 43 44 |
# File 'lib/pure/error.rb', line 42 def entity @entity end |
Instance Method Details
#custom_message ⇒ Object
49 50 51 |
# File 'lib/pure/error.rb', line 49 def "failed to parse `#{entity}'" end |