Exception: Quickl::IOAccessError
- 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), , backtrace
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(*args) ⇒ IOAccessError
constructor
A new instance of IOAccessError.
- #react! ⇒ Object
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
212 213 214 |
# File 'lib/quickl/errors.rb', line 212 def react! raise Exit.new(self.exit_code), self., backtrace end |