github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/fwaas_v2/rules/errors.go (about)

     1  package rules
     2  
     3  import "fmt"
     4  
     5  func err(str string) error {
     6  	return fmt.Errorf("%s", str)
     7  }
     8  
     9  var (
    10  	errProtocolRequired = err("A protocol is required (tcp, udp, icmp or any)")
    11  	errActionRequired   = err("An action is required (allow or deny)")
    12  )