Exception: ActiveRemote::RemoteRecordNotFound
- Inherits:
-
ActiveRemoteError
- Object
- StandardError
- ActiveRemoteError
- ActiveRemote::RemoteRecordNotFound
- Defined in:
- lib/active_remote/errors.rb
Overview
Raised by ActiveRemove::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.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/active_remote/errors.rb', line 28 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.
26 27 28 |
# File 'lib/active_remote/errors.rb', line 26 def remote_record_class @remote_record_class end |