Implement WeakHashMap.
[SquirrelJME.git] / modules / cldc-compact / src / test / java / lang / TestExceptionCatchUp.java
blob5209285640e15af7bcd68280fb6b2279a771b0a5
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package lang;
12 import java.util.NoSuchElementException;
13 import net.multiphasicapps.tac.TestSupplier;
15 /**
16 * Tests exceptions being caught in higher stack frames.
18 * @since 2018/12/06
20 public class TestExceptionCatchUp
21 extends TestSupplier<String>
23 /**
24 * Throws an exception.
26 * @since 2018/12/06
28 public final String levelA()
30 return this.levelB();
33 /**
34 * Throws an exception.
36 * @since 2018/12/06
38 public final String levelB()
40 throw new NoSuchElementException("TEST");
43 /**
44 * {@inheritDoc}
45 * @since 2018/12/06
47 @Override
48 public String test()
50 try
52 return this.levelA();
54 catch (NoSuchElementException t)
56 throw new IllegalArgumentException(t);