/*
+ *
* Copyright 2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* @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);
}
/**