Exception: Clearbooks::LockfileParserError

Inherits:
ClearbooksError show all
Defined in:
lib/clearbooks/error/errors.rb

Instance Method Summary collapse

Methods inherited from ClearbooksError

status_code

Constructor Details

#initialize(original) ⇒ LockfileParserError

Returns a new instance of LockfileParserError.

Parameters:

  • lockfile (String)

    the path to the Lockfile

  • original (~Exception)

    the original exception class



187
188
189
# File 'lib/clearbooks/error/errors.rb', line 187

def initialize(original)
  @original = original
end

Instance Method Details

#to_sObject



191
192
193
194
# File 'lib/clearbooks/error/errors.rb', line 191

def to_s
  "Error reading the Clearbooks lockfile:\n\n" \
  "  #{@original.class}: #{@original.message}"
end