Exception: Ephem::OutOfRangeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ephem/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, out_of_range_times) ⇒ OutOfRangeError

Returns a new instance of OutOfRangeError.



21
22
23
24
# File 'lib/ephem/error.rb', line 21

def initialize(message, out_of_range_times)
  super(message)
  @out_of_range_times = out_of_range_times
end

Instance Attribute Details

#out_of_range_timesObject (readonly)

Returns the value of attribute out_of_range_times.



19
20
21
# File 'lib/ephem/error.rb', line 19

def out_of_range_times
  @out_of_range_times
end