File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
base/src/main/java/com/tinyengine/it/dynamic/service Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 33import com .alibaba .fastjson .JSON ;
44import com .alibaba .fastjson .JSONArray ;
55import com .tinyengine .it .common .context .LoginUserContext ;
6+ import com .tinyengine .it .common .exception .ExceptionEnum ;
7+ import com .tinyengine .it .common .exception .ServiceException ;
68import com .tinyengine .it .dynamic .dto .DynamicDelete ;
79import com .tinyengine .it .dynamic .dto .DynamicInsert ;
810import com .tinyengine .it .dynamic .dto .DynamicQuery ;
@@ -53,6 +55,8 @@ public void createDynamicTable(Model modelMetadata) {
5355
5456 } catch (Exception e ) {
5557 log .error ("createDynamicTable failed: {}" , tableName , e );
58+ throw new ServiceException (ExceptionEnum .CM001 .getResultCode (), ExceptionEnum .CM001 .getResultCode ());
59+
5660 }
5761 }
5862 private String generateDropTableSQL (String tableName ) {
@@ -81,6 +85,8 @@ public void dropDynamicTable(Model modelMetadata) {
8185 log .info ("Successfully dropped table: {}" , tableName );
8286 } catch (Exception e ) {
8387 log .error ("Failed to drop table: {}" , tableName , e );
88+ throw new ServiceException (ExceptionEnum .CM001 .getResultCode (), ExceptionEnum .CM001 .getResultCode ());
89+
8490 }
8591 }
8692 /**
You can’t perform that action at this time.
0 commit comments