lib/active_remote/errors.rb in active_remote-2.4.0 vs lib/active_remote/errors.rb in active_remote-3.0.0.pre1
- old
+ new
@@ -3,10 +3,13 @@
module ActiveRemote
# Generic Active Remote exception class.
class ActiveRemoteError < StandardError
end
+ class DangerousAttributeError < ActiveRemoteError
+ end
+
# Raised by ActiveRemove::Base.save when the remote record is readonly.
class ReadOnlyRemoteRecord < ActiveRemoteError
end
# Raised by ActiveRemote::Validations when save is called on an invalid record.
@@ -38,7 +41,10 @@
end
# Raised by ActiveRemove::Base.save! and ActiveRemote::Base.create! methods
# when remote record cannot be saved because it is invalid.
class RemoteRecordNotSaved < ActiveRemoteError
+ end
+
+ class UnknownAttributeError < ActiveRemoteError
end
end