[LOGTOOL-78] Use better logic to determine the correct exception constructor to use. Note a slight change in behaviour requiring a string parameter for the message if @Param is used on any parameters.