Skip to content

Commit

Permalink
[Java] Capture exception class name if an exception occurs when proce…
Browse files Browse the repository at this point in the history
…ssing a client command.
  • Loading branch information
mjpt777 committed Sep 26, 2017
1 parent 2682eb5 commit 6c43b8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ else if (channel.startsWith(SPY_PREFIX))
}
catch (final Exception ex)
{
clientProxy.onError(correlationId, GENERIC_ERROR, ex.getMessage());
final String errorMessage = ex.getClass().getName() + " : " + ex.getMessage();
clientProxy.onError(correlationId, GENERIC_ERROR, errorMessage);
recordError(ex);
}
}
Expand Down

0 comments on commit 6c43b8d

Please sign in to comment.