Exception: RIO::Exception::Open

Inherits:
Base show all
Defined in:
lib/rio/exception/open.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objObject (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

#explainObject



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