Exception: Datafile::DatasetNotFoundError

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

Overview

todo/check: rename to DatasetNotFound or similar?? use “common” error class - why? why not?

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ DatasetNotFoundError

Returns a new instance of DatasetNotFoundError.



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

def initialize( message )
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



20
21
22
# File 'lib/datafile.rb', line 20

def message
  @message
end

Instance Method Details

#to_sObject



26
27
28
# File 'lib/datafile.rb', line 26

def to_s
  "datset not found => #{@message}"
end