Class: Autocad::DrawingError
Overview
class RetryableError < Error
attr_reader :num_tries
def initialize(, num_tries)
@num_tries = num_tries
super("#{} (##{num_tries})")
end
end
Instance Attribute Summary collapse
-
#drawing ⇒ Object
readonly
Returns the value of attribute drawing.
Instance Method Summary collapse
-
#initialize(message, drawing) ⇒ DrawingError
constructor
A new instance of DrawingError.
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(, drawing) @drawing = drawing super("#{} for #{drawing.path}") end |
Instance Attribute Details
#drawing ⇒ Object (readonly)
Returns the value of attribute drawing.
23 24 25 |
# File 'lib/autocad/errors.rb', line 23 def drawing @drawing end |