File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
convex-cli/src/test/java/convex/cli/key
convex-gui/src/main/java/convex/gui/server
convex-java/src/test/java/example/trader
convex-observer/src/main/java/convex/observer Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 17
17
import convex .core .crypto .PFXTools ;
18
18
import convex .core .data .AccountKey ;
19
19
import convex .core .util .FileUtils ;
20
- import convex .core .util .Utils ;
21
20
22
21
public class KeyExportTest {
23
22
private static final char [] KEYSTORE_PASSWORD = "testPassword" .toCharArray ();
@@ -31,10 +30,9 @@ public class KeyExportTest {
31
30
TEMP_FILE =Helpers .createTempFile ("tempKeystore" , ".pfx" );
32
31
PFXTools .createStore (TEMP_FILE , KEYSTORE_PASSWORD );
33
32
KEYSTORE_FILENAME = TEMP_FILE .getCanonicalPath ();
34
- } catch (Throwable t ) {
35
- throw Utils .sneakyThrow (t );
36
- }
37
-
33
+ } catch (Exception t ) {
34
+ throw new Error (t );
35
+ }
38
36
}
39
37
40
38
@ Test
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ protected String doInBackground() {
214
214
running =repeatCheckBox .isSelected ();
215
215
if (running ) Thread .sleep (((Integer )(repeatTimeSpinner .getValue ()))*1000 );
216
216
};
217
- } catch (Throwable e ) {
217
+ } catch (Exception e ) {
218
218
log .warn ("Stress test worker terminated unexpectedly" ,e );
219
219
resultArea .setText ("Test Error: " +e );
220
220
} finally {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public static void main(String [] args) {
11
11
InputStream is =classLoader .getResourceAsStream ("example/trader/APIKEY" );
12
12
String text = new String (is .readAllBytes ());
13
13
System .out .println ("Using API key: " +text );
14
- } catch (Throwable e ) {
14
+ } catch (Exception e ) {
15
15
e .printStackTrace ();
16
16
throw new Error (e );
17
17
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ public void run() {
57
57
try {
58
58
loop ();
59
59
} catch (InterruptedException e ) {
60
+ Thread .currentThread ().interrupt (); // maintain interrupt status
60
61
log .debug ("Component thread interrupted: {}" ,thread );
61
62
break ;
62
- } catch (Throwable e ) {
63
+ } catch (Exception e ) {
63
64
log .warn ("Unexpected exception in " +this .getClass ().getSimpleName (),e );
64
65
// Stop observer ??
65
66
// break;
You can’t perform that action at this time.
0 commit comments