public void addError(String message, Throwable exception) { if (exception instanceof MissingClassException) { MissingClassException e = (MissingClassException) exception; addMissingClass(AbstractBugReporter.getMissingClassName(e.getClassNotFoundException())); return; } if (exception instanceof ClassNotFoundException) { ClassNotFoundException e = (ClassNotFoundException) exception; addMissingClass(AbstractBugReporter.getMissingClassName(e)); return; } errorList.add(new AnalysisError(message, exception));
public void addError(String message) { addError(message, null);
	public void addError(String message, Throwable exception) {		if (exception instanceof MissingClassException) {			MissingClassException e = (MissingClassException) exception;			addMissingClass(AbstractBugReporter.getMissingClassName(e.getClassNotFoundException()));			return;		}		if (exception instanceof ClassNotFoundException) {			ClassNotFoundException e = (ClassNotFoundException) exception;			addMissingClass(AbstractBugReporter.getMissingClassName(e));			return;		}		errorList.add(new AnalysisError(message, exception));	}