Exception: Apipie::ParamInvalid
- Inherits:
- 
      DefinedParamError
      
        - Object
- StandardError
- Error
- ParamError
- DefinedParamError
- Apipie::ParamInvalid
 
- Defined in:
- lib/apipie/errors.rb
Instance Attribute Summary collapse
- 
  
    
      #error  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute error. 
- 
  
    
      #value  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute value. 
Attributes inherited from DefinedParamError
Instance Method Summary collapse
- 
  
    
      #initialize(param, value, error)  ⇒ ParamInvalid 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ParamInvalid. 
- #to_s ⇒ Object
Constructor Details
#initialize(param, value, error) ⇒ ParamInvalid
Returns a new instance of ParamInvalid.
| 27 28 29 30 31 | # File 'lib/apipie/errors.rb', line 27 def initialize(param, value, error) super param @value = value @error = error end | 
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
| 25 26 27 | # File 'lib/apipie/errors.rb', line 25 def error @error end | 
#value ⇒ Object
Returns the value of attribute value.
| 25 26 27 | # File 'lib/apipie/errors.rb', line 25 def value @value end | 
Instance Method Details
#to_s ⇒ Object
| 33 34 35 | # File 'lib/apipie/errors.rb', line 33 def to_s "Invalid parameter '#{@param}' value #{@value.inspect}: #{@error}" end |