Exception: AllGems::GemWorker::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/allgems/GemWorker.rb

Overview

Make a parent error class that we can specialize

Direct Known Subclasses

DocError, FetchError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e = nil) ⇒ Error

Returns a new instance of Error.



196
197
198
# File 'lib/allgems/GemWorker.rb', line 196

def initialize(e=nil)
    @original = e.nil? ? self : e
end

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



195
196
197
# File 'lib/allgems/GemWorker.rb', line 195

def original
  @original
end