changed deprecated debug classes for error handler & exception handler

Changed deprecated debug classes for error handler & exception handler