Skip to content

Commit 6c43b8d

Browse files
committed
[Java] Capture exception class name if an exception occurs when processing a client command.
1 parent 2682eb5 commit 6c43b8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aeron-driver/src/main/java/io/aeron/driver/ClientCommandAdapter.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ else if (channel.startsWith(SPY_PREFIX))
176176
}
177177
catch (final Exception ex)
178178
{
179-
clientProxy.onError(correlationId, GENERIC_ERROR, ex.getMessage());
179+
final String errorMessage = ex.getClass().getName() + " : " + ex.getMessage();
180+
clientProxy.onError(correlationId, GENERIC_ERROR, errorMessage);
180181
recordError(ex);
181182
}
182183
}

0 commit comments

Comments
 (0)