github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/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("model is not bootstrapped")
    12  	ErrNoInstances      = errors.NotFoundf("instances")
    13  	ErrPartialInstances = errors.New("only some instances were found")
    14  
    15  	// Errors indicating that the provider can't allocate an IP address to an
    16  	// instance.
    17  	ErrIPAddressesExhausted = errors.New("can't allocate a new IP address")
    18  	ErrIPAddressUnavailable = errors.New("the requested IP address is unavailable")
    19  )