Removing use of unused exception class