add method parameters values to the exception, reformat code