mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 10:43:06 +08:00
optimize exception throwing
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user