addExceptionsRecursively(throwableProxy, exceptions);
return exceptions;
}
private void addExceptionsRecursively(final IThrowableProxy throwableProxy, final List<ExceptionVO> exceptions) {
final ExceptionVO exception = new ExceptionVO();
exception.setErrorClass(throwableProxy.getClassName());
exception.setMessage(throwableProxy.getMessage());
exception.addStackTrace(convertToStackTraces(throwableProxy));
exceptions.add(exception);
final boolean hasCause = throwableProxy.getCause() != null;
if (hasCause) {
addExceptionsRecursively(throwableProxy.getCause(), exceptions);