How to explain it's wrong to code like 'Exception calls Exception' #php

后端 未结 0 1758
孤独总比滥情好
孤独总比滥情好 2020-12-30 16:39

We have such peace of code and I\'m sure it\'s bad practice to do that

try {
  if (!$user) {
     throw new Exception(\'Some error\');
  }

} catch (Exception         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题