Then what class name will I use in the error message if I do in the above mentioned way, as anonymous class does not have any name.