Google\Cloud\Exception\ServiceException::hasServiceException PHP 메소드

hasServiceException() 공개 메소드

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

Usage Example

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