/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/function/abstract_pool_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2021-11-15 12:16:03 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20211115121603-lclpo88js9sgreee
Refactoring.

* Moved all off the Common namespace into Utils.
* Moved the tests for the Utils into it's own fonder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
    pool_size = get_pool_size (instance);
23
23
    if (pool_size > MAX_TOKEN_ITERATIONS) {
24
 
        throw new Common.ParamError.OUT_OF_BOUNDS
 
24
        throw new Utils.ParamError.OUT_OF_BOUNDS
25
25
          (@"$(this.get_type ().name ()) Pool index: $(get_pool_size (instance))");
26
26
    }
27
27
 
69
69
        
70
70
        total_roll_number++;
71
71
        if (total_roll_number > MAX_TOKEN_ITERATIONS) {
72
 
          throw new Common.LoopError.TO_LONG 
 
72
          throw new Utils.LoopError.TO_LONG 
73
73
            (@"$(get_function_name (this.get_type ())): Loop took more than $MAX_TOKEN_ITERATIONS to complete.");
74
74
        }
75
75
        is_roll_again = true;