// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package io.gitea.sdk.exceptions;

/**
 * Thrown when checksum verification fails.
 */
public class ChecksumException extends UploadException {
    private final String expected;
    private final String actual;

    public ChecksumException(String message, String expected, String actual, String sessionId) {
        super(message, sessionId, null);
        this.expected = expected;
        this.actual = actual;
    }

    public String getExpected() {
        return expected;
    }

    public String getActual() {
        return actual;
    }
}
