module Teams
  class EntitlementError < StandardError
    attr_reader :code, :billing_url

    def initialize(message, code: "premium_required", billing_url: nil)
      super(message)
      @code = code
      @billing_url = billing_url
    end
  end
end
