Exception: Datafile::DatasetNotFoundError
- Defined in:
- lib/datafile.rb
Overview
todo/check: rename to DatasetNotFound or similar?? 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) ⇒ DatasetNotFoundError
constructor
A new instance of DatasetNotFoundError.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ DatasetNotFoundError
Returns a new instance of DatasetNotFoundError.
22 23 24 |
# File 'lib/datafile.rb', line 22 def initialize( ) @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
20 21 22 |
# File 'lib/datafile.rb', line 20 def @message end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/datafile.rb', line 26 def to_s "datset not found => #{@message}" end |