Catching an exception when creating a new SoapClient properly
问题 I'm having a difficult time catching a SoapClient authentication issue. When my code executes, Laravel declares it's throwing an ErrorException but I can't seem to catch it no matter what code I use. I'm tagging Laravel in case there's some magic going on somewhere I don't know about because App::error() will trigger on this error still. try { $client = new SoapClient( $this->serviceUrl . $this->clients[$clientName], array( 'login' => $this->username, 'password' => $this->password,