Skip to content

Commit 0dcb4cd

Browse files
author
wudongming1
committed
deal nacos config exception
1 parent ed8f16b commit 0dcb4cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mriya-core/src/main/java/com/codingdm/mriya/config/NacosConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,16 @@ private NacosConfig(){
6363
}catch (NacosException e){
6464
log.error("nacos config NacosException --> \n" + e.getErrMsg());
6565
e.printStackTrace();
66+
throw new RuntimeException("nacos config NacosException");
6667
}catch (ConfigurationException e){
6768
log.error("properties read IOException --> \n" + e.getMessage());
6869
e.printStackTrace();
70+
throw new RuntimeException("properties read IOException");
6971
}
7072
catch (IOException e) {
7173
log.error("nacos config IOException --> \n" + e.getMessage());
7274
e.printStackTrace();
75+
throw new RuntimeException("nacos config IOException");
7376
}
7477
}
7578

0 commit comments

Comments
 (0)