    001    package com.hammurapi.eventbus;
    002
    003    import java.util.Collection;
    004
    005    /**
    006     * This exception is thrown from Handle.join() in the case of multiple exceptions thrown during dispatching
    007     * of the event to handlers.
    008     * @author Pavel Vlasov
    009     *
    010     */
    011    public class EventDispatchMultiCauseException extends EventBusException {
    012
    013            private Collection<Exception> causes;
    014
    015            public EventDispatchMultiCauseException(Collection<Exception> causes) {
    016                    this.causes = causes;
    017            }
    018
    019            public Collection<Exception> getCauses() {
    020                    return causes;
    021            }
    022
    023    }