Exception: AllGems::GemWorker::DocError

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

Overview

Exception class for failed documentation creation

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(gn, gv, e = nil) ⇒ DocError

Returns a new instance of DocError.



204
205
206
207
208
# File 'lib/allgems/GemWorker.rb', line 204

def initialize(gn, gv, e=nil)
    super(e)
    @gem_name = gn
    @gem_version = gv
end

Instance Attribute Details

#gem_nameObject (readonly)

Returns the value of attribute gem_name.



203
204
205
# File 'lib/allgems/GemWorker.rb', line 203

def gem_name
  @gem_name
end

#gem_versionObject (readonly)

Returns the value of attribute gem_version.



203
204
205
# File 'lib/allgems/GemWorker.rb', line 203

def gem_version
  @gem_version
end

Instance Method Details

#to_sObject



209
210
211
# File 'lib/allgems/GemWorker.rb', line 209

def to_s
    "Failed to create documentation for: #{@gem_name}-#{@gem_version}."
end