/** * Adds an Exception to the list of Exceptions kept in this multi Exception.<p> * * @param exception the Exception to add */ public void addException(CmsException exception) { m_exceptions.add(exception); updateMessage(); }
/** * Adds all Exceptions in the given List to the list of Exceptions kept in this multi Exception.<p> * * @param exceptions the Exceptions to add */ public void addExceptions(List<CmsException> exceptions) { m_exceptions.addAll(exceptions); updateMessage(); }
/** * Updates the internal list of stored exceptions.<p> * * @param exceptions the exceptions to use (will replace the current exception list) */ protected void setExceptions(List<CmsException> exceptions) { m_exceptions = new ArrayList<CmsException>(exceptions); updateMessage(); }
/** * Adds an Exception to the list of Exceptions kept in this multi Exception.<p> * * @param exception the Exception to add */ public void addException(CmsException exception) { m_exceptions.add(exception); updateMessage(); }
/** * Adds all Exceptions in the given List to the list of Exceptions kept in this multi Exception.<p> * * @param exceptions the Exceptions to add */ public void addExceptions(List exceptions) { m_exceptions.addAll(exceptions); updateMessage(); }
/** * Updates the internal list of stored exceptions.<p> * * @param exceptions the exceptions to use (will replace the current exception list) */ protected void setExceptions(List exceptions) { m_exceptions = new ArrayList(exceptions); updateMessage(); }
/** * Sets an individual message for the multi exception base message.<p> * * If no individual message has been set, a default message using the key * <code>{@link org.opencms.main.Messages#ERR_MULTI_EXCEPTION_1}</code> will be used.<p> * * If <code>null</code> is given as parameter, any individual message that * has been set is reset to the default message.<p> * * @param message the message to set */ public void setMessage(CmsMessageContainer message) { if ((message != null) && (message.getKey() != Messages.ERR_MULTI_EXCEPTION_1)) { m_individualMessage = true; m_message = message; } else { // if message is null, reset and use default message again m_individualMessage = false; updateMessage(); } }
/** * Sets an individual message for the multi exception base message.<p> * * If no individual message has been set, a default message using the key * <code>{@link org.opencms.main.Messages#ERR_MULTI_EXCEPTION_1}</code> will be used.<p> * * If <code>null</code> is given as parameter, any individual message that * has been set is reset to the default message.<p> * * @param message the message to set */ public void setMessage(CmsMessageContainer message) { if ((message != null) && (message.getKey() != Messages.ERR_MULTI_EXCEPTION_1)) { m_individualMessage = true; m_message = message; } else { // if message is null, reset and use default message again m_individualMessage = false; updateMessage(); } }