[ticket/11495] Use default exceptions

PHPBB3-11495