Exception: Quickl::IOAccessError

Inherits:
Error show all
Defined in:
lib/quickl/errors.rb

Overview

This error can be raised to indicate that some file/dir access has failed.

Default exit code:

-1

Default reaction:

raise Exit.new(code), message, backtrace

Instance Attribute Summary

Attributes inherited from Error

#command, #exit_code

Instance Method Summary collapse

Methods inherited from Error

#do_kernel_exit, #error_io, #exit?

Constructor Details

#initialize(*args) ⇒ IOAccessError

Returns a new instance of IOAccessError.



208
209
210
# File 'lib/quickl/errors.rb', line 208

def initialize(*args)
  super(*(args + [ -1 ]))
end

Instance Method Details

#react!Object

Raises:



212
213
214
# File 'lib/quickl/errors.rb', line 212

def react!
  raise Exit.new(self.exit_code), self.message, backtrace
end