class QuickFixJAutoConfigFailureAnalyzer extends AbstractFailureAnalyzer<QuickFixJBaseException> {

	@Override
	protected FailureAnalysis analyze(Throwable rootFailure, QuickFixJBaseException cause) {
		String descriptionMessage = cause.getMessage();
		String actionMessage = cause.getMessage();
		String rootCauseMessage = getRootCauseMessage(cause);

		if (cause instanceof ConfigurationException) {
			descriptionMessage = "A configuration error has been detected in the QuickFIX/J settings provided: " + rootCauseMessage;
			actionMessage = "Please configure your QuickFIX/J settings as per the documentation: https://www.quickfixj.org/usermanual/2.1.0/usage/configuration.html";
		}

		if (cause instanceof SettingsNotFoundException) {
			descriptionMessage = "The QuickFIX/J settings file could not be found: " + rootCauseMessage;
			actionMessage = "Please provide a QuickFIX/J settings file on the property 'config' for the client/server section in your configuration file.";
		}

		return new FailureAnalysis(descriptionMessage, actionMessage, cause);
	}

}