#24503Throw correct Exceptions everywhere
Description
- There are some more die() statements, which should be replaced with an Exception
- Often, no error code is added to the Exception($msg, $code) call
- Sometimes, only a general Exception instead of a specific RuntimeException or ArgumentException is thrown (not criticl, but I replaced them)
Patch is ready for RFC after branching 4.5
(issue imported from #M16953)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.