dev add reason entity
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-03-27 17:54:04 +07:00
parent 9a8a4a72f4
commit 067b967a17
16 changed files with 1 additions and 552 deletions
@@ -1,17 +0,0 @@
package ru.soune.nocopy.exception;
import lombok.Getter;
@Getter
public class ModerationReasonInUseException extends RuntimeException {
private final Long reasonId;
private final Long usageCount;
public ModerationReasonInUseException(Long reasonId, Long usageCount) {
super(String.format("Cannot delete moderation reason %d because it is used by %d files",
reasonId, usageCount));
this.reasonId = reasonId;
this.usageCount = usageCount;
}
}
@@ -1,7 +0,0 @@
package ru.soune.nocopy.exception;
public class ModerationReasonNotFoundException extends RuntimeException {
public ModerationReasonNotFoundException(Long id) {
super("Moderation reason not found with id: " + id);
}
}