Sha256: 79fdd2414ab5244cbea8978ce3aaa8e5eb7f5dcb1bf86dd67786d51815edde04

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module OData
  # Raised when a user attempts to do something that is not supported
  class NotSupportedError < StandardError; end
  # Raised when the service returns an error
  class ServiceError < StandardError
    attr_reader :http_code
    def initialize(code)
      @http_code = code
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_odata-0.2.0.beta1 lib/ruby_odata/exceptions.rb
ruby_odata-0.1.6 lib/ruby_odata/exceptions.rb
ruby_odata-0.1.5 lib/ruby_odata/exceptions.rb