Exception: Apipie::ParamInvalid

Inherits:
DefinedParamError show all
Defined in:
lib/apipie/errors.rb

Instance Attribute Summary collapse

Attributes inherited from DefinedParamError

#param

Instance Method Summary collapse

Constructor Details

#initialize(param, value, error) ⇒ ParamInvalid

Returns a new instance of ParamInvalid.



44
45
46
47
48
# File 'lib/apipie/errors.rb', line 44

def initialize(param, value, error)
  super param
  @value = value
  @error = error
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



42
43
44
# File 'lib/apipie/errors.rb', line 42

def error
  @error
end

#valueObject

Returns the value of attribute value.



42
43
44
# File 'lib/apipie/errors.rb', line 42

def value
  @value
end

Instance Method Details

#to_sObject



50
51
52
# File 'lib/apipie/errors.rb', line 50

def to_s
  "Invalid parameter '#{@param}' value #{@value.inspect}: #{@error}"
end