Exception: Datafile::DatasetNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/datafile/workers/dataset.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.



15
16
17
# File 'lib/datafile/workers/dataset.rb', line 15

def initialize( message )
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



13
14
15
# File 'lib/datafile/workers/dataset.rb', line 13

def message
  @message
end

Instance Method Details

#to_sObject



19
20
21
# File 'lib/datafile/workers/dataset.rb', line 19

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