Sha256: 173e0977c4dbb4874bc6f22573029988c52546b04beeec6fc613803fae52c2d3

Contents?: true

Size: 682 Bytes

Versions: 22

Compression:

Stored size: 682 Bytes

Contents

# TODO: Create more specific errors
#
module ActiveRemote

  # = Active Remote Errors
  #
  # Generic Active Remote exception class.
  class ActiveRemoteError < StandardError
  end

  # Raised by ActiveRemove::Base.save when the remote record is readonly.
  class ReadOnlyRemoteRecord < ActiveRemoteError
  end

  # Raised by ActiveRemove::Base.find when remote record is not found when
  # searching with the given arguments.
  class RemoteRecordNotFound < ActiveRemoteError
  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
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
active_remote-1.8.0 lib/active_remote/errors.rb
active_remote-1.8.0.rc1 lib/active_remote/errors.rb
active_remote-1.7.1 lib/active_remote/errors.rb
active_remote-1.7.0 lib/active_remote/errors.rb
active_remote-1.6.1 lib/active_remote/errors.rb
active_remote-1.6.0 lib/active_remote/errors.rb
active_remote-1.5.9 lib/active_remote/errors.rb
active_remote-1.5.8 lib/active_remote/errors.rb
active_remote-1.5.7 lib/active_remote/errors.rb
active_remote-1.5.6 lib/active_remote/errors.rb
active_remote-1.5.5 lib/active_remote/errors.rb
active_remote-1.5.4 lib/active_remote/errors.rb
active_remote-1.5.2 lib/active_remote/errors.rb
active_remote-1.5.1 lib/active_remote/errors.rb
active_remote-1.5.0 lib/active_remote/errors.rb
active_remote-1.4.1 lib/active_remote/errors.rb
active_remote-1.4.0 lib/active_remote/errors.rb
active_remote-1.3.3 lib/active_remote/errors.rb
active_remote-1.3.2 lib/active_remote/errors.rb
active_remote-1.3.1 lib/active_remote/errors.rb