Exception: Rod::InvalidArgument
- Inherits:
-
RodException
- Object
- Exception
- RodException
- Rod::InvalidArgument
- Defined in:
- lib/rod/exception.rb
Overview
This exception is raised if argument for some Rod API call (such as field, has_one, has_many) is invalid.
Instance Method Summary collapse
-
#initialize(value, type) ⇒ InvalidArgument
constructor
A new instance of InvalidArgument.
- #to_s ⇒ Object
Constructor Details
#initialize(value, type) ⇒ InvalidArgument
Returns a new instance of InvalidArgument.
51 52 53 54 |
# File 'lib/rod/exception.rb', line 51 def initialize(value,type) @value = value @type = type end |
Instance Method Details
#to_s ⇒ Object
56 57 58 |
# File 'lib/rod/exception.rb', line 56 def to_s "The value '#@value' of the #@type is invalid!" end |