Exception: Clearbooks::ClearbooksfileNotFound
- Inherits:
-
ClearbooksError
- Object
- StandardError
- ClearbooksError
- Clearbooks::ClearbooksfileNotFound
- Defined in:
- lib/clearbooks/error/errors.rb
Instance Method Summary collapse
-
#initialize(filepath) ⇒ ClearbooksfileNotFound
constructor
A new instance of ClearbooksfileNotFound.
- #to_s ⇒ Object
Methods inherited from ClearbooksError
Constructor Details
#initialize(filepath) ⇒ ClearbooksfileNotFound
Returns a new instance of ClearbooksfileNotFound.
32 33 34 |
# File 'lib/clearbooks/error/errors.rb', line 32 def initialize(filepath) @filepath = File.dirname(File.(filepath)) rescue filepath end |
Instance Method Details
#to_s ⇒ Object
36 37 38 |
# File 'lib/clearbooks/error/errors.rb', line 36 def to_s "No Clearbooksfile or Clearbooksfile.lock found at '#{@filepath}'!" end |