optimize exception throwing

This commit is contained in:
zgq
2024-03-28 15:12:51 +08:00
parent af467eb5fc
commit e45ba555dd

View File

@ -50,7 +50,7 @@ public class ExportDBData2JsonStrategy extends ExportDBDataStrategy {
String jsonString = objectMapper.writeValueAsString(data);
writer.println(jsonString);
} catch (IOException e) {
throw new BusinessException();
throw new BusinessException("data.export2Json.error",data.toArray(),e);
}
}
}