/*
+ *
* Copyright 2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
private List<String> _messages;
/**
- * Constructs the program action executor.
+ * Constructs the report.
*
*/
public Report() {
RecordingResult.class);
for (RecordingResult result : RecordingResult.values()) {
_recordings.put(result, new TreeSet<Program>(
- new Program.TimeSorter()));
+ new Program.TimeComparator()));
}
_messages = new ArrayList<String>();
}
* @param aException Exception that caused the problem.
*/
public void addMessage(String aMessage, Exception aException) {
- _messages.add(aMessage + ": " + aException.getMessage());
+ String msg = aMessage;
+ for (Throwable e = aException; e != null; e = e.getCause()) {
+ msg += ": " + e.getMessage();
+ }
+ addMessage(msg);
}
/**
LOG.info("category = '" + aCategory + "', program: " + aProgram);
Set<Program> programs = _interestingShows.get(aCategory);
if (programs == null) {
- programs = new TreeSet<Program>(new Program.TimeSorter());
+ programs = new TreeSet<Program>(new Program.TimeComparator());
_interestingShows.put(aCategory, programs);
}
programs.add(aProgram);