refactor: ValidationException — только в WordPdfValidator (мост → ConversionException, app → BadRequestException) #93

Merged
pjandro merged 1 commits from refactor/validation-exception-scoping into main 2026-11-04 02:11:58 +03:00
Collaborator
No description provided.
ai added 1 commit 2026-11-04 02:10:34 +03:00
refactor: ValidationException — исключительная собственность WordPdfValidator
PR checks / web (pull_request) Successful in 37s
PR checks / java (pull_request) Successful in 1m24s
Main: tests, deploy, autotests / web (push) Successful in 32s
Main: tests, deploy, autotests / java (push) Successful in 1m8s
Main: tests, deploy, autotests / images-web (push) Successful in 32s
Main: tests, deploy, autotests / images-app (push) Successful in 49s
Main: tests, deploy, autotests / deploy (push) Successful in 3m58s
Main: tests, deploy, autotests / autotests (push) Successful in 41s
Main: tests, deploy, autotests / rollback (push) Has been skipped
ba755e8ac0
Мост .doc → .docx (internal/doc) и javadoc-контракты переводятся на
ConversionException; WordPdfValidator.checkPageCountDoc оборачивает отказ
моста в ValidationException с сохранением текста (вердикт «вход
некорректен» выносит только валидатор; глубина, ловимая лишь при
конвертации, становится 500 — как у .docx). Проверки ConvertController
переезжают на новый app-класс BadRequestException (400 с теми же
текстами), ApiExceptionHandler получает хендлер. Тесты моста доказывают
ровно тип (assertSame(ConversionException.class, ...)); новый регрессивный
WordPdfValidatorTest#checkPageCountDoc_brokenBridge_wrappedAsValidation.
Документация (AGENTS.md, docs/agent/doc-bridge.md) синхронизирована.

Покрытие (JaCoCo)

Модуль Строки Ветви Порог строк
wordpdf-core 95.0% 85.4% 90%
wordpdf-app 94.0% 86.2% 90%
<!-- jacoco-coverage --> ## Покрытие (JaCoCo) | Модуль | Строки | Ветви | Порог строк | |---|---|---|---| | wordpdf-core | 95.0% | 85.4% | 90% | | wordpdf-app | 94.0% | 86.2% | 90% |
pjandro merged commit ba755e8ac0 into main 2026-11-04 02:11:58 +03:00
pjandro deleted branch refactor/validation-exception-scoping 2026-11-04 02:11:58 +03:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pjandro/java-word-pdf#93