Exception: CsvReader::ParseError
- Defined in:
- lib/csvreader/parser.rb
Overview
todo/check:
use "common" error class - why? why not?
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message) ⇒ ParseError
constructor
A new instance of ParseError.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ ParseError
Returns a new instance of ParseError.
24 25 26 |
# File 'lib/csvreader/parser.rb', line 24 def initialize( ) @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
22 23 24 |
# File 'lib/csvreader/parser.rb', line 22 def @message end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/csvreader/parser.rb', line 28 def to_s "*** csv parse error: #{@message}" end |