# frozen_string_literal: true

require_relative "synor_database/version"
require_relative "synor_database/types"
require_relative "synor_database/client"

module SynorDatabase
  class Error < StandardError; end
  class ClientClosedError < Error; end
  class HttpError < Error
    attr_reader :status_code, :code

    def initialize(message, status_code: 0, code: nil)
      super(message)
      @status_code = status_code
      @code = code
    end
  end
end
