lib/active_remote/errors.rb in active_remote-3.0.0 vs lib/active_remote/errors.rb in active_remote-3.1.0
- old
+ new
@@ -21,11 +21,11 @@
errors = @record.errors.full_messages.join(', ')
super(errors)
end
end
- # Raised by ActiveRemove::Base.find when remote record is not found when
+ # Raised by ActiveRemote::Base.find when remote record is not found when
# searching with the given arguments.
class RemoteRecordNotFound < ActiveRemoteError
attr_accessor :remote_record_class
def initialize(class_or_message = "")
@@ -44,7 +44,38 @@
# when remote record cannot be saved because it is invalid.
class RemoteRecordNotSaved < ActiveRemoteError
end
class UnknownAttributeError < ActiveRemoteError
+ end
+
+ # Errors from Protobuf
+ class BadRequestDataError < ActiveRemoteError
+ end
+
+ class BadRequestProtoError < ActiveRemoteError
+ end
+
+ class ServiceNotFoundError < ActiveRemoteError
+ end
+
+ class MethodNotFoundError < ActiveRemoteError
+ end
+
+ class RpcError < ActiveRemoteError
+ end
+
+ class RpcFailedError < ActiveRemoteError
+ end
+
+ class InvalidRequestProtoError < ActiveRemoteError
+ end
+
+ class BadResponseProtoError < ActiveRemoteError
+ end
+
+ class UnknownHostError < ActiveRemoteError
+ end
+
+ class IOError < ActiveRemoteError
end
end