How to make sure I'm throwing the right error

后端 未结 0 407
臣服心动
臣服心动 2020-12-07 02:27

I\'m throwing more than one error in a function

function checkToken{
if there is no token ==> throw error1
if there is token but not valid ==> throw2
<         


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