Don't throw exceptions in ContentHandler::getUndoContent()
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 8 Sep 2016 03:52:19 +0000 (20:52 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 8 Sep 2016 03:52:19 +0000 (20:52 -0700)
commit35e511086bc7304d3fb1330b20f2c16549fa093e
tree3c7d37088ba831519e1fdbf37015b04950214b44
parent5f42db0a6dd48e146809816dd371a976e48096c1
Don't throw exceptions in ContentHandler::getUndoContent()

The method is not documented to throw any exceptions, and already
returns false on failure, and it can be seen as a failure case when the
content models are not the same.

Bug: T145044
Change-Id: I0394d19cd65f9dd3ee350d2cde95afb11ab9e7f4
includes/content/ContentHandler.php