Skip to content

Commit

Permalink
Add uncaught exception handler to barrage-example mains (#4619)
Browse files Browse the repository at this point in the history
Related to #4618
  • Loading branch information
devinrsmith authored Oct 10, 2023
1 parent c6a1f8c commit e12d8cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
package io.deephaven.client.examples;

import io.deephaven.base.system.AsyncSystem;
import io.deephaven.qst.TableCreationLogic;
import picocli.CommandLine;
import picocli.CommandLine.ArgGroup;
Expand All @@ -21,6 +22,7 @@ protected TableCreationLogic logic() {
}

public static void main(String[] args) {
Thread.setDefaultUncaughtExceptionHandler(AsyncSystem.uncaughtExceptionHandler(1, System.err));
int execute = new CommandLine(new SnapshotTable()).execute(args);
System.exit(execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
package io.deephaven.client.examples;

import io.deephaven.base.system.AsyncSystem;
import io.deephaven.qst.TableCreationLogic;
import io.deephaven.qst.table.TableSpec;
import io.deephaven.qst.table.TimeTable;
Expand All @@ -23,6 +24,7 @@ protected TableCreationLogic logic() {
}

public static void main(String[] args) {
Thread.setDefaultUncaughtExceptionHandler(AsyncSystem.uncaughtExceptionHandler(1, System.err));
int execute = new CommandLine(new SubscribeQST()).execute(args);
System.exit(execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
package io.deephaven.client.examples;

import io.deephaven.base.system.AsyncSystem;
import io.deephaven.qst.TableCreationLogic;
import picocli.CommandLine;
import picocli.CommandLine.ArgGroup;
Expand All @@ -21,6 +22,7 @@ protected TableCreationLogic logic() {
}

public static void main(String[] args) {
Thread.setDefaultUncaughtExceptionHandler(AsyncSystem.uncaughtExceptionHandler(1, System.err));
int execute = new CommandLine(new SubscribeTable()).execute(args);
System.exit(execute);
}
Expand Down

0 comments on commit e12d8cb

Please sign in to comment.