@Test(expected = Error.class)
    public void providerThrowsError_DoesNotContinueChain() {
        final String expectedRegion = "some-region-string";
        AwsRegionProviderChain chain = new AwsRegionProviderChain(new NeverAwsRegionProvider(),
                                                                  new FatalAwsRegionProvider(),
                                                                  new StaticAwsRegionProvider(
                                                                          expectedRegion));
        assertEquals(expectedRegion, chain.getRegion());
    }
Only Exceptions should be caught and continued, Errors should propagate to caller and short
circuit the chain.
aws-java-sdk-core/src/test/java/com/amazonaws/regions/AwsRegionProviderChainTest.java