All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elder.sourcerer.esjc.EventStoreSubscriptionStoppedException Maven / Gradle / Ivy

Go to download

An opinionated framework for implementing an CQRS architecture using event sourcing

The newest version!
package org.elder.sourcerer.esjc;

import com.github.msemys.esjc.SubscriptionDropReason;

public class EventStoreSubscriptionStoppedException extends Throwable {
    private final SubscriptionDropReason reason;
    private final Exception exception;

    public EventStoreSubscriptionStoppedException(
            final SubscriptionDropReason reason,
            final Exception exception) {
        super(exception);
        this.reason = reason;
        this.exception = exception;
    }

    public SubscriptionDropReason getReason() {
        return reason;
    }

    public Exception getException() {
        return exception;
    }

    @Override
    public String toString() {
        return "EventStoreSubscriptionStoppedException{" +
                "reason=" + reason +
                ", exception=" + exception +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy