Sha256: cb46f187b03cf502ff57e32a5c9bdef31c2ff4fe5e16bc25ad491996576011e5

Contents?: true

Size: 662 Bytes

Versions: 13

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

module Typesense
  class Error < StandardError
    attr_reader :data

    def initialize(data)
      @data = data

      super
    end

    class MissingConfiguration < Error
    end

    class ObjectAlreadyExists < Error
    end

    class ObjectNotFound < Error
    end

    class ObjectUnprocessable < Error
    end

    class RequestMalformed < Error
    end

    class RequestUnauthorized < Error
    end

    class ServerError < Error
    end

    class HTTPStatus0Error < Error
    end

    class TimeoutError < Error
    end

    class NoMethodError < ::NoMethodError
    end

    class HTTPError < Error
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
typesense-3.0.0.rc1 lib/typesense/error.rb
typesense-2.1.0 lib/typesense/error.rb
typesense-2.1.0.rc2 lib/typesense/error.rb
typesense-2.1.0.rc1 lib/typesense/error.rb
typesense-2.0.0 lib/typesense/error.rb
typesense-1.1.0 lib/typesense/error.rb
typesense-1.0.0 lib/typesense/error.rb
typesense-0.15.0 lib/typesense/error.rb
typesense-0.14.1 lib/typesense/error.rb
typesense-0.14.0 lib/typesense/error.rb
typesense-0.13.0 lib/typesense/error.rb
typesense-0.12.0 lib/typesense/error.rb
typesense-0.11.1 lib/typesense/error.rb