Skip to content

[4.0] re-throw the original exception#30653

Merged
infograf768 merged 2 commits intojoomla:4.0-devfrom
alikon:patch-81
Sep 16, 2020
Merged

[4.0] re-throw the original exception#30653
infograf768 merged 2 commits intojoomla:4.0-devfrom
alikon:patch-81

Conversation

@alikon
Copy link
Copy Markdown
Contributor

@alikon alikon commented Sep 16, 2020

Pull Request for follow up https://github.com/joomla/joomla-cms/pull/30642/files#r488220693.

Summary of Changes

re-throw the original exception for ArticleModel and ContactModel

Testing Instructions

code review
and/or same test as #30642 and for article

@ChristineWk
Copy link
Copy Markdown

I have tested this item ✅ successfully on 443dd9e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30653.

@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 443dd9e

It would be better to have separate exception types for the one and the other case (404 and others) instead of checking the code all the time to decide if to re-throw or not.

But that's beyond the scope of this PR.

And for now it is better to re-throw the exception here instead of creating a new, identical one, and so this PR is good.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30653.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30653.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 16, 2020
@infograf768 infograf768 merged commit 2787e0c into joomla:4.0-dev Sep 16, 2020
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 16, 2020
@infograf768
Copy link
Copy Markdown
Member

tks

@infograf768 infograf768 added this to the Joomla 4.0 milestone Sep 16, 2020
@alikon alikon deleted the patch-81 branch September 16, 2020 11:45
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
* re-throw the original exception

* re-throw the original exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants