Configure the exception intercepter