Exception PartialListInstancesException (2.39.4)

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
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.

Returns
Type Description
List<Instance>

getUnavailableZones()

public List<String> getUnavailableZones()

A list of zones, whose unavailability caused this error.

Returns
Type Description
List<String>