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

CommentFileSizeAuthor
#1 updateexception-1750980.patch399 bytesnlisgo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nlisgo’s picture

FileSize
399 bytes

Here is the little patch :)

nlisgo’s picture

Status: Active » Needs review
nlisgo’s picture

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".

eojthebrave’s picture

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. :)

catch’s picture

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.