Exception: Rod::InvalidArgument

Inherits:
RodException show all
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

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_sObject



56
57
58
# File 'lib/rod/exception.rb', line 56

def to_s
  "The value '#@value' of the #@type is invalid!"
end