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.



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

def initialize( message )
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

Instance Method Details

#to_sObject



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

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