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 1717
1818declare (strict_types=1 );
1919
20+ use Google \ApiCore \ApiException as GaxApiException ;
2021use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
2122use Google \Cloud \TestUtils \TestTrait ;
2223use PHPUnit \Framework \TestCase ;
@@ -39,7 +40,7 @@ public static function tearDownAfterClass()
3940
4041 try {
4142 $ client ->deleteSecret ($ name );
42- } catch (\ Google \ ApiCore \ ApiException $ e ) {
43+ } catch (GaxApiException $ e ) {
4344 if ($ e ->getStatus () != 'NOT_FOUND ' ) {
4445 throw $ e ;
4546 }
Original file line number Diff line number Diff line change 1919
2020namespace Google \Cloud \Samples \SecretManager ;
2121
22+ use Google \ApiCore \ApiException as GaxApiException ;
2223use Google \Cloud \SecretManager \V1beta1 \Replication ;
2324use Google \Cloud \SecretManager \V1beta1 \Replication \Automatic ;
2425use Google \Cloud \SecretManager \V1beta1 \Secret ;
@@ -101,7 +102,7 @@ private static function deleteSecret(string $name)
101102 {
102103 try {
103104 self ::$ client ->deleteSecret ($ name );
104- } catch (\ Google \ ApiCore \ ApiException $ e ) {
105+ } catch (GaxApiException $ e ) {
105106 if ($ e ->getStatus () != 'NOT_FOUND ' ) {
106107 throw $ e ;
107108 }
You can’t perform that action at this time.
0 commit comments