# frozen_string_literal: true

require_relative "synor_hosting/version"
require_relative "synor_hosting/types"
require_relative "synor_hosting/client"

module SynorHosting
  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
