Exception PartialListInstancesException (2.13.0)

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.

Constructors

PartialListInstancesException(List<String> unavailableZones, List<Instance> instances)

public PartialListInstancesException(List<String> unavailableZones, List<Instance> instances)
Parameters
NameDescription
unavailableZonesList<String>
instancesList<Instance>

Methods

getInstances()

public List<Instance> getInstances()

A partial list of instances that were found in the available zones.

Returns
TypeDescription
List<Instance>

getUnavailableZones()

public List<String> getUnavailableZones()

A list of zones, whose unavailability caused this error.

Returns
TypeDescription
List<String>