Exception: VORuby::CoordinateSystems::NotACoordinateException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- VORuby::CoordinateSystems::NotACoordinateException
- Defined in:
- lib/voruby/spacetime/spacetime.rb
Direct Known Subclasses
Equatorial::Exception::NotADeclination, Equatorial::Exception::NotARightAscension, NotATimeException
Instance Method Summary collapse
-
#initialize(value, intended_name) ⇒ NotACoordinateException
constructor
A new instance of NotACoordinateException.
Constructor Details
#initialize(value, intended_name) ⇒ NotACoordinateException
Returns a new instance of NotACoordinateException.
66 67 68 |
# File 'lib/voruby/spacetime/spacetime.rb', line 66 def initialize(value, intended_name) super("'#{value}' (#{value.class}) is not (or can't be converted to) a #{intended_name} object.") end |