Exception: Staticky::Files::IOError

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

Overview

Wraps low level I/O errors

Instance Method Summary collapse

Constructor Details

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

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

Parameters:

  • cause (Exception)

    the low level exception



18
19
20
21
# File 'lib/staticky/files/error.rb', line 18

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

Instance Method Details

#causeObject

The original exception



26
27
28
# File 'lib/staticky/files/error.rb', line 26

def cause
  @_cause
end