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

com.eventstore.dbclient.WrongExpectedVersionException Maven / Gradle / Ivy

package com.eventstore.dbclient;

import javax.validation.constraints.NotNull;

public class WrongExpectedVersionException extends RuntimeException {
    private final String streamName;
    private final StreamRevision nextExpectedRevision;
    private final StreamRevision actualRevision;

    public WrongExpectedVersionException(
            @NotNull String streamName,
            @NotNull StreamRevision nextExpectedRevisionUnsigned,
            @NotNull StreamRevision actualRevision) {
        this.streamName = streamName;
        this.nextExpectedRevision = nextExpectedRevisionUnsigned;
        this.actualRevision = actualRevision;
    }

    public String getStreamName() {
        return streamName;
    }

    public StreamRevision getNextExpectedRevision() {
        return nextExpectedRevision;
    }

    public StreamRevision getActualVersion() {
        return actualRevision;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy