Method: RIO::Exception::Open#explain
- Defined in:
- lib/rio/exception/open.rb
#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 |