Page MenuHomePhabricator

Replace use of MWException in Content/ContentHandler/ContentModel code
Closed, ResolvedPublic

Event Timeline

Change #1251489 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] ContentSerializationException no longer extends deprecated MWException

https://gerrit.wikimedia.org/r/1251489

Change #1251490 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Add UnsupportedContentModelException to replace MWException

https://gerrit.wikimedia.org/r/1251490

Change #1251491 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Add UnexpectedContentModelException to replace MWException

https://gerrit.wikimedia.org/r/1251491

Change #1251492 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Replace last use of MWException in Content code

https://gerrit.wikimedia.org/r/1251492

This may be a slightly risky change; we have a lot of code like that just catches MWException, and in some cases it's hard to tell which error exactly it was supposed to catch, and what errors it's actually catching. I think I figured them all out, but if I made any mistakes, some of the new (or the old) exceptions may bubble up to the user. It will be easy to fix if that happens, though.

Change #1251489 merged by jenkins-bot:

[mediawiki/core@master] ContentSerializationException no longer extends deprecated MWException

https://gerrit.wikimedia.org/r/1251489

Change #1251490 merged by jenkins-bot:

[mediawiki/core@master] Add UnsupportedContentFormatException to replace MWException

https://gerrit.wikimedia.org/r/1251490

Change #1251491 merged by jenkins-bot:

[mediawiki/core@master] Add UnexpectedContentModelException to replace MWException

https://gerrit.wikimedia.org/r/1251491

Change #1251492 merged by jenkins-bot:

[mediawiki/core@master] Replace last use of MWException in Content code

https://gerrit.wikimedia.org/r/1251492