[ticket/13306] constructor sets error types

https://tracker.phpbb.com/browse/PHPBB3-13306

PHPBB3-13306