Exception: CsvReader::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/csvreader/parser.rb

Overview

todo/check:

use "common" error class - why? why not?

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ParseError

Returns a new instance of ParseError.



24
25
26
# File 'lib/csvreader/parser.rb', line 24

def initialize( message )
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



22
23
24
# File 'lib/csvreader/parser.rb', line 22

def message
  @message
end

Instance Method Details

#to_sObject



28
29
30
# File 'lib/csvreader/parser.rb', line 28

def to_s
  "*** csv parse error: #{@message}"
end