PHP does not validate. use Exception is declared in all other similar files in core. I will upload the patch in a minute.

#1 updateexception-1750980.patch399 bytesnlisgo
PASSED: [[SimpleTest]]: [MySQL] 40,567 pass(es).
[ View ]


new399 bytes
PASSED: [[SimpleTest]]: [MySQL] 40,567 pass(es).
[ View ]

Here is the little patch :)

Status:Active» Needs review

In case you're wondering where the validation error occurs it is in core/modules/system/system.api.php line 2949.

"The thrown object must be an instance of the Exception".

Status:Needs review» Reviewed & tested by the community

This seems reasonable to me and it's a super simple patch. If you're going to extend the exception class you need to make sure it gets loaded. :)

Status:Reviewed & tested by the community» Fixed

Thanks. Committed/pushed to 8.x.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.