ComparisonFailureData (Throwable assertion) { if (isComparisonFailure(assertion)) { return ComparisonFailureData.create(assertion); } try { final Throwable cause = assertion.getCause(); if (isComparisonFailure(cause)) { return ComparisonFailureData.create(cause); } } catch (Throwable ignore) { } final String message = assertion.getMessage(); if (message != null && acceptedByThreshold(message.length())) { try { return createExceptionNotification(message); } catch (Throwable ignored) {} } return null; }