Sha256: d8e802f439cd3a48e5afc62d3427d840547210cb61d89117c67ef7f636d43140

Contents?: true

Size: 287 Bytes

Versions: 16

Compression:

Stored size: 287 Bytes

Contents

module Apidiesel
  class Error < StandardError; end
  class InputError < Error; end

  class RequestError < Error
    attr_reader :request

    def initialize(msg = nil, request = nil)
      @request = request
      super(msg)
    end
  end

  class ResponseError < RequestError; end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
apidiesel-0.13 lib/apidiesel/errors.rb
apidiesel-0.12 lib/apidiesel/errors.rb
apidiesel-0.11 lib/apidiesel/errors.rb
apidiesel-0.10 lib/apidiesel/errors.rb
apidiesel-0.9 lib/apidiesel/errors.rb
apidiesel-0.8 lib/apidiesel/errors.rb
apidiesel-0.7 lib/apidiesel/errors.rb
apidiesel-0.6 lib/apidiesel/errors.rb
apidiesel-0.5 lib/apidiesel/errors.rb
apidiesel-0.4 lib/apidiesel/errors.rb
apidiesel-0.3 lib/apidiesel/errors.rb
apidiesel-0.2 lib/apidiesel/errors.rb
apidiesel-0.1.3 lib/apidiesel/errors.rb
apidiesel-0.1.2 lib/apidiesel/errors.rb
apidiesel-0.1.1 lib/apidiesel/errors.rb
apidiesel-0.1.0 lib/apidiesel/errors.rb