public class PartialListInstancesException extends RuntimeException
Exception thrown when some zones are unavailable and listInstances is unable to return a full instance list. This exception can be inspected to get a partial list.
Inheritance
java.lang.Object > java.lang.Throwable > java.lang.Exception > RuntimeException > PartialListInstancesExceptionConstructors
PartialListInstancesException(List<String> unavailableZones, List<Instance> instances)
public PartialListInstancesException(List<String> unavailableZones, List<Instance> instances)
Name | Description |
unavailableZones | List<String> |
instances | List<Instance> |
Methods
getInstances()
public List<Instance> getInstances()
A partial list of instances that were found in the available zones.
Type | Description |
List<Instance> |
getUnavailableZones()
public List<String> getUnavailableZones()
A list of zones, whose unavailability caused this error.
Type | Description |
List<String> |