Sha256: f6160516de9d8adcf9c88e67ed96a40cd316e7c79e8215ec1b992caea7787f8e

Contents?: true

Size: 437 Bytes

Versions: 13

Compression:

Stored size: 437 Bytes

Contents

module RubyBox 
  class RubyBoxError < StandardError
    def initialize(error_json)
      @error_json = error_json
    end

    def [](key)
      @error_json[key]
    end
  end

  class ObjectNotFound < StandardError; end
  class AuthError < RubyBoxError; end
  class RequestError < RubyBoxError; end
  class ServerError < StandardError; end
  class ItemNameInUse < RubyBoxError; end
  class UnshareableResource < StandardError; end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ruby-box-1.11.0 lib/ruby-box/exceptions.rb
ruby-box-1.10.2 lib/ruby-box/exceptions.rb
ruby-box-1.10.1 lib/ruby-box/exceptions.rb
ruby-box-1.10.0 lib/ruby-box/exceptions.rb
ruby-box-1.9.3 lib/ruby-box/exceptions.rb
ruby-box-1.9.2 lib/ruby-box/exceptions.rb
ruby-box-1.9.1 lib/ruby-box/exceptions.rb
ruby-box-1.9.0 lib/ruby-box/exceptions.rb
ruby-box-1.8.1 lib/ruby-box/exceptions.rb
ruby-box-1.8.0 lib/ruby-box/exceptions.rb
ruby-box-1.7.0 lib/ruby-box/exceptions.rb
ruby-box-1.6.0 lib/ruby-box/exceptions.rb
ruby-box-1.5.0 lib/ruby-box/exceptions.rb