11package com .hubspot .jinjava .random ;
22
3- import com .hubspot .jinjava .el . ext . DeferredParsingException ;
3+ import com .hubspot .jinjava .interpret . DeferredValueException ;
44import java .util .Random ;
55import java .util .stream .DoubleStream ;
66import java .util .stream .IntStream ;
@@ -15,42 +15,42 @@ public class DeferredRandomNumberGenerator extends Random {
1515
1616 @ Override
1717 protected int next (int bits ) {
18- throw new DeferredParsingException (EXCEPTION_MESSAGE );
18+ throw new DeferredValueException (EXCEPTION_MESSAGE );
1919 }
2020
2121 @ Override
2222 public int nextInt () {
23- throw new DeferredParsingException (EXCEPTION_MESSAGE );
23+ throw new DeferredValueException (EXCEPTION_MESSAGE );
2424 }
2525
2626 @ Override
2727 public int nextInt (int bound ) {
28- throw new DeferredParsingException (EXCEPTION_MESSAGE );
28+ throw new DeferredValueException (EXCEPTION_MESSAGE );
2929 }
3030
3131 @ Override
3232 public long nextLong () {
33- throw new DeferredParsingException (EXCEPTION_MESSAGE );
33+ throw new DeferredValueException (EXCEPTION_MESSAGE );
3434 }
3535
3636 @ Override
3737 public boolean nextBoolean () {
38- throw new DeferredParsingException (EXCEPTION_MESSAGE );
38+ throw new DeferredValueException (EXCEPTION_MESSAGE );
3939 }
4040
4141 @ Override
4242 public float nextFloat () {
43- throw new DeferredParsingException (EXCEPTION_MESSAGE );
43+ throw new DeferredValueException (EXCEPTION_MESSAGE );
4444 }
4545
4646 @ Override
4747 public double nextDouble () {
48- throw new DeferredParsingException (EXCEPTION_MESSAGE );
48+ throw new DeferredValueException (EXCEPTION_MESSAGE );
4949 }
5050
5151 @ Override
5252 public synchronized double nextGaussian () {
53- throw new DeferredParsingException (EXCEPTION_MESSAGE );
53+ throw new DeferredValueException (EXCEPTION_MESSAGE );
5454 }
5555
5656 @ Override
0 commit comments