standardize exception output