File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
declare (strict_types=1 );
19
19
20
+ use Google \ApiCore \ApiException as GaxApiException ;
20
21
use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
21
22
use Google \Cloud \TestUtils \TestTrait ;
22
23
use PHPUnit \Framework \TestCase ;
@@ -39,7 +40,7 @@ public static function tearDownAfterClass()
39
40
40
41
try {
41
42
$ client ->deleteSecret ($ name );
42
- } catch (\ Google \ ApiCore \ ApiException $ e ) {
43
+ } catch (GaxApiException $ e ) {
43
44
if ($ e ->getStatus () != 'NOT_FOUND ' ) {
44
45
throw $ e ;
45
46
}
Original file line number Diff line number Diff line change 19
19
20
20
namespace Google \Cloud \Samples \SecretManager ;
21
21
22
+ use Google \ApiCore \ApiException as GaxApiException ;
22
23
use Google \Cloud \SecretManager \V1beta1 \Replication ;
23
24
use Google \Cloud \SecretManager \V1beta1 \Replication \Automatic ;
24
25
use Google \Cloud \SecretManager \V1beta1 \Secret ;
@@ -101,7 +102,7 @@ private static function deleteSecret(string $name)
101
102
{
102
103
try {
103
104
self ::$ client ->deleteSecret ($ name );
104
- } catch (\ Google \ ApiCore \ ApiException $ e ) {
105
+ } catch (GaxApiException $ e ) {
105
106
if ($ e ->getStatus () != 'NOT_FOUND ' ) {
106
107
throw $ e ;
107
108
}
You can’t perform that action at this time.
0 commit comments