Example #1
0
 public function testErrorsAreParsedCorrectly()
 {
     try {
         $this->client->deleteIdentityPool(array('IdentityPoolId' => 'abc:abc'));
         $this->fail('An exception should have been thrown.');
     } catch (ServiceResponseException $e) {
         $this->assertEquals('ResourceNotFoundException', $e->getExceptionCode(), 'Caught a ' . $e->getExceptionCode() . ' exception instead.');
     }
 }