updted exception class to be more readable