Exception: ActiveRemote::RemoteRecordNotFound
- Inherits:
- 
      ActiveRemoteError
      
        - Object
- StandardError
- ActiveRemoteError
- ActiveRemote::RemoteRecordNotFound
 
- Defined in:
- lib/active_remote/errors.rb
Overview
Raised by ActiveRemote::Base.find when remote record is not found when searching with the given arguments.
Instance Attribute Summary collapse
- 
  
    
      #remote_record_class  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute remote_record_class. 
Instance Method Summary collapse
- 
  
    
      #initialize(class_or_message = "")  ⇒ RemoteRecordNotFound 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RemoteRecordNotFound. 
Constructor Details
#initialize(class_or_message = "") ⇒ RemoteRecordNotFound
Returns a new instance of RemoteRecordNotFound.
| 31 32 33 34 35 36 37 38 39 40 | # File 'lib/active_remote/errors.rb', line 31 def initialize( = "") = if .is_a?(Class) self.remote_record_class = = "#{remote_record_class} does not exist" end super() end | 
Instance Attribute Details
#remote_record_class ⇒ Object
Returns the value of attribute remote_record_class.
| 29 30 31 | # File 'lib/active_remote/errors.rb', line 29 def remote_record_class @remote_record_class end |