github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/environs/errors.go (about) 1 // Copyright 2011, 2012, 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package environs 5 6 import ( 7 "github.com/juju/errors" 8 ) 9 10 var ( 11 ErrNotBootstrapped = errors.New("environment is not bootstrapped") 12 ErrAlreadyBootstrapped = errors.New("environment is already bootstrapped") 13 ErrNoInstances = errors.NotFoundf("instances") 14 ErrPartialInstances = errors.New("only some instances were found") 15 16 // Errors indicating that the provider can't allocate an IP address to an 17 // instance. 18 ErrIPAddressesExhausted = errors.New("can't allocate a new IP address") 19 ErrIPAddressUnavailable = errors.New("the requested IP address is unavailable") 20 )