# frozen_string_literal: true

require_relative "synor_governance/version"
require_relative "synor_governance/types"
require_relative "synor_governance/client"

module SynorGovernance
  class Error < StandardError; end
  class ClientClosedError < Error; end

  class HttpError < Error
    attr_reader :status_code, :code

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