trigger_error vs. throwing exceptions

前端 未结 3 1919
臣服心动
臣服心动 2020-12-30 05:33

A similar question was asked here, but as the answers didn\'t answer my question, I\'m asking:

I\'ve almost never used trigger_error, always thrown exce

3条回答
  •  太阳男子
    2020-12-30 05:53

    If I'd use the library, I would really hate to use both try-catch block and old style error checking. And even if the missing API key renders the library unusable, it's still part of application.

提交回复
热议问题