This came up in a patch dealing with MediaWikiTitleCodec in unit tests, where MalformedTitleException could not be created, but applies to other classes too. These exceptions use the global state when being created. Applies to
- MalformedTitleException
- LocalizedException
- ApiUsageException
- ErrorPageError and subclasses
- UploadChunkVerificationException
- UploadStashException