github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/state/errors/application.go (about) 1 // Copyright 2022 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package errors 5 6 import ( 7 "github.com/juju/errors" 8 ) 9 10 const ( 11 // ProvisioningStateInconsistent is returned by SetProvisioningState when the provisioning state 12 // is inconsistent with the application scale. 13 ProvisioningStateInconsistent = errors.ConstError("provisioning state is inconsistent") 14 15 // ErrApplicationShouldNotHaveUnits is returned by SetCharm when the application has units when 16 // it is expected to not have units. Used for upgrading from podspec to sidecar charms. 17 ErrApplicationShouldNotHaveUnits = errors.ConstError("application should not have units") 18 )