Google\Cloud\Exception\ServiceException::hasServiceException PHP Méthode

hasServiceException() public méthode

If $serviceException is set, return true.
public hasServiceException ( ) : boolean
Résultat boolean
    public function hasServiceException()
    {
        return (bool) $this->serviceException;
    }

Usage Example

 public function testDoesntHaveServiceException()
 {
     $ex = new ServiceException('foo');
     $this->assertFalse($ex->hasServiceException());
 }