File tree Expand file tree Collapse file tree 7 files changed +0
-77
lines changed Expand file tree Collapse file tree 7 files changed +0
-77
lines changed Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* The web identity token that was passed is expired or is not valid. Get a new identity token from the identity
10
9
* provider and then retry the request.
11
10
*/
12
11
final class ExpiredTokenException extends ClientException
13
12
{
14
- protected function populateResult (ResponseInterface $ response ): void
15
- {
16
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
17
- if (0 < $ data ->Error ->count ()) {
18
- $ data = $ data ->Error ;
19
- }
20
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
21
- $ this ->message = $ v ;
22
- }
23
- }
24
13
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* The request could not be fulfilled because the identity provider (IDP) that was asked to verify the incoming identity
13
12
*/
14
13
final class IDPCommunicationErrorException extends ClientException
15
14
{
16
- protected function populateResult (ResponseInterface $ response ): void
17
- {
18
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
19
- if (0 < $ data ->Error ->count ()) {
20
- $ data = $ data ->Error ;
21
- }
22
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
23
- $ this ->message = $ v ;
24
- }
25
- }
26
15
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* The identity provider (IdP) reported that authentication failed. This might be because the claim is invalid.
13
12
*/
14
13
final class IDPRejectedClaimException extends ClientException
15
14
{
16
- protected function populateResult (ResponseInterface $ response ): void
17
- {
18
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
19
- if (0 < $ data ->Error ->count ()) {
20
- $ data = $ data ->Error ;
21
- }
22
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
23
- $ this ->message = $ v ;
24
- }
25
- }
26
15
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* The web identity token that was passed could not be validated by Amazon Web Services. Get a new identity token from
10
9
* the identity provider and then retry the request.
11
10
*/
12
11
final class InvalidIdentityTokenException extends ClientException
13
12
{
14
- protected function populateResult (ResponseInterface $ response ): void
15
- {
16
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
17
- if (0 < $ data ->Error ->count ()) {
18
- $ data = $ data ->Error ;
19
- }
20
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
21
- $ this ->message = $ v ;
22
- }
23
- }
24
13
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* The request was rejected because the policy document was malformed. The error message describes the specific error.
10
9
*/
11
10
final class MalformedPolicyDocumentException extends ClientException
12
11
{
13
- protected function populateResult (ResponseInterface $ response ): void
14
- {
15
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
16
- if (0 < $ data ->Error ->count ()) {
17
- $ data = $ data ->Error ;
18
- }
19
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
20
- $ this ->message = $ v ;
21
- }
22
- }
23
12
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* The request was rejected because the total packed size of the session policies and session tags combined was too
20
19
*/
21
20
final class PackedPolicyTooLargeException extends ClientException
22
21
{
23
- protected function populateResult (ResponseInterface $ response ): void
24
- {
25
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
26
- if (0 < $ data ->Error ->count ()) {
27
- $ data = $ data ->Error ;
28
- }
29
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
30
- $ this ->message = $ v ;
31
- }
32
- }
33
22
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \Core \Sts \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
- use Symfony \Contracts \HttpClient \ResponseInterface ;
7
6
8
7
/**
9
8
* STS is not activated in the requested region for the account that is being asked to generate credentials. The account
14
13
*/
15
14
final class RegionDisabledException extends ClientException
16
15
{
17
- protected function populateResult (ResponseInterface $ response ): void
18
- {
19
- $ data = new \SimpleXMLElement ($ response ->getContent (false ));
20
- if (0 < $ data ->Error ->count ()) {
21
- $ data = $ data ->Error ;
22
- }
23
- if (null !== $ v = (($ v = $ data ->message ) ? (string ) $ v : null )) {
24
- $ this ->message = $ v ;
25
- }
26
- }
27
16
}
You can’t perform that action at this time.
0 commit comments