Method: RIO::Exception::Copy#explain

Defined in:
lib/rio/exception/copy.rb

#explainObject



82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/rio/exception/copy.rb', line 82

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