Class: Autocad::DrawingError

Inherits:
Error
  • Object
show all
Defined in:
lib/autocad/errors.rb

Overview

class RetryableError < Error

attr_reader :num_tries
def initialize(message, num_tries)
  @num_tries = num_tries
  super("#{message} (##{num_tries})")
end

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, drawing) ⇒ DrawingError

Returns a new instance of DrawingError.



25
26
27
28
# File 'lib/autocad/errors.rb', line 25

def initialize(message, drawing)
  @drawing = drawing
  super("#{message} for #{drawing.path}")
end

Instance Attribute Details

#drawingObject (readonly)

Returns the value of attribute drawing.



23
24
25
# File 'lib/autocad/errors.rb', line 23

def drawing
  @drawing
end