我有一个自定义类:classActivationServiceextendsSmsException{publicfunction__construct(){$this->sms=newSmsSender();}publicfunctionmethod(){thrownewSmsException();//Mycustomexception}publicfunctionsend(){$this->sms->sendSms($this->phone);//Here'swheretheerrorappeared}}所以,当我调用$this->sms->sendSms时,我从类sms中得到了