Corrected use of Exception from local namespace instead of global