Exception: Dry::Files::IOError

Inherits:
Error
  • Object
show all
Defined in:
lib/dry/files/error.rb

Overview

Wraps low level I/O errors

See Also:

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ Dry::Files::IOError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Instantiate a new ‘Dry::Files::IOError`

Parameters:

  • cause (Exception)

    the low level exception

Since:

  • 0.1.0



27
28
29
30
# File 'lib/dry/files/error.rb', line 27

def initialize(cause)
  super(cause.message)
  @_cause = cause
end

Instance Method Details

#causeObject

The original exception



38
39
40
# File 'lib/dry/files/error.rb', line 38

def cause
  @_cause
end