Exception: RIO::Exception::Open
- Defined in:
- lib/rio/exception/open.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
- #explain ⇒ Object
-
#initialize(obj, syse, *args) ⇒ Open
constructor
A new instance of Open.
Constructor Details
#initialize(obj, syse, *args) ⇒ Open
Returns a new instance of Open.
42 43 44 45 |
# File 'lib/rio/exception/open.rb', line 42 def initialize(obj,syse ,*args) @obj = obj @syserr = syse end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
41 42 43 |
# File 'lib/rio/exception/open.rb', line 41 def obj @obj end |
Instance Method Details
#explain ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rio/exception/open.rb', line 46 def explain() # s = "#{self.class}: failed copying '#{@src}' => #{@dst}" # s += submsg("Err: #{@syserr}") if @syserr # s += submsg("Src: '#{@src}' " + finfo(@src)) # s += submsg("Dst: '#{@dst}' " + finfo(@dst)) # target = ::RIO::rio(@dst,@src.filename) if @dst.dir? # p target # if target.exist? # s += submsg("Tgt: '#{target} " + finfo(target)) # end # s += "\n" end |