exception = new ResourceNotFoundException(message, exception);
}
break;
case 409:
if ("BucketAlreadyExists".equals(errorCode)) {
exception = new ResourceAlreadyExistsException(exception);
} else {
exception = new IllegalStateException(message, exception);
}
break;
}