Changing the logging controller to exceptions controller.

Modifying the CustomExceptions object