Skip to content

7029 - improved exceptions (1/2)#115

Draft
petrknap wants to merge 1 commit into
v3.xfrom
7029-improved-exceptions-404-only
Draft

7029 - improved exceptions (1/2)#115
petrknap wants to merge 1 commit into
v3.xfrom
7029-improved-exceptions-404-only

Conversation

@petrknap

Copy link
Copy Markdown
Contributor

Part 1/2 - refactoring + 404

https://redmine.havelholding.cz/issues/7029

@petrknap petrknap self-assigned this Jul 21, 2026
@petrknap petrknap added documentation Improvements or additions to documentation enhancement New feature or request Apiary (deprecated) Thepay WS API documentation (deprecated label use OpenAPI) OpenAPI Thepay WS API documentation labels Jul 21, 2026

@petrknap petrknap Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to choose the base name and suffix for exceptions?

  • ApiServiceException + NotFoundApiServiceException
  • Exception + NotFoundException
  • ApiServiceException + NotFound
  • Exception + NotFound

There already are NoAvailablePaymentMethod (without suffix), MissingExtensionException (with suffix) and ApiException (which blocks the best name for the root).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NotFoundApiServiceException looks nice.

I only hove one idea heck root name with interface suffix: ApiExceptionIterface.

@petrknap
petrknap requested a review from Triplkrypl July 21, 2026 09:51
@petrknap petrknap changed the title 7029 - improved exceptions 7029 - improved exceptions (1/2) Jul 21, 2026
Part 1/2 - refactoring + 404
@petrknap
petrknap force-pushed the 7029-improved-exceptions-404-only branch from e378b26 to 2eb0077 Compare July 21, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Apiary (deprecated) Thepay WS API documentation (deprecated label use OpenAPI) documentation Improvements or additions to documentation enhancement New feature or request OpenAPI Thepay WS API documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants