File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
quickfixj-core/src/main/java/quickfix Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ public void clear() {
40
40
for (Log log : logs ) {
41
41
try {
42
42
log .clear ();
43
- } catch (Throwable e ) {
43
+ } catch (Exception e ) {
44
44
handleError (e );
45
45
}
46
46
}
47
47
}
48
48
49
- private void handleError (Throwable e ) {
49
+ private void handleError (Exception e ) {
50
50
if (rethrowException ) {
51
51
throw new RuntimeException (e );
52
52
}
@@ -57,7 +57,7 @@ public void onIncoming(String message) {
57
57
for (Log log : logs ) {
58
58
try {
59
59
log .onIncoming (message );
60
- } catch (Throwable e ) {
60
+ } catch (Exception e ) {
61
61
handleError (e );
62
62
}
63
63
}
@@ -67,7 +67,7 @@ public void onOutgoing(String message) {
67
67
for (Log log : logs ) {
68
68
try {
69
69
log .onOutgoing (message );
70
- } catch (Throwable e ) {
70
+ } catch (Exception e ) {
71
71
defaultLog .error (e .getMessage () + ", continuing" , e );
72
72
}
73
73
}
@@ -77,7 +77,7 @@ public void onEvent(String text) {
77
77
for (Log log : logs ) {
78
78
try {
79
79
log .onEvent (text );
80
- } catch (Throwable e ) {
80
+ } catch (Exception e ) {
81
81
handleError (e );
82
82
}
83
83
}
@@ -87,7 +87,7 @@ public void onErrorEvent(String text) {
87
87
for (Log log : logs ) {
88
88
try {
89
89
log .onErrorEvent (text );
90
- } catch (Throwable e ) {
90
+ } catch (Exception e ) {
91
91
handleError (e );
92
92
}
93
93
}
You can’t perform that action at this time.
0 commit comments