By ankitsingh0188 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
When writing code to catch DatabaseException, intellisense doesn't see the existence of any exception-related methods.
Before
interface DatabaseException {}
Then, since DatabaseException is just an empty interface and isn't guaranteed to have a getMessage() function, an IDE with intellisense will complain.
After
interface DatabaseException extends \Throwable { }
This still works with all the other existing code, and it makes it obvious to development tools that what you're catching is something that is a \Throwable.
Impacts:
Site builders, administrators, editors
Module developers
Themers
Site templates, recipes and distribution developers