github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/state/errors/unit.go (about)

     1  // Copyright 2020 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  	// ErrUnitHasSubordinates is a standard error to indicate that a Unit
    12  	// cannot complete an operation to end its life because it still has
    13  	// subordinate applications.
    14  	ErrUnitHasSubordinates = errors.ConstError("unit has subordinates")
    15  
    16  	// ErrUnitHasStorageAttachments is a standard error to indicate that
    17  	// a Unit cannot complete an operation to end its life because it still
    18  	// has storage attachments.
    19  	ErrUnitHasStorageAttachments = errors.ConstError("unit has storage attachments")
    20  )