Created ClientException class and replaced generic runtime exceptions with the proper exception in some controllers.