Adding extensions for exceptions.