[feature/migrations] getLocalisedMessage function for migration exception

PHPBB3-11351