func (p Priority) Validate() error {
	if err := p.Severity.Validate(); err != nil {
		return fmt.Errorf("bad Severity: %v", err)
	}
	if err := p.Facility.Validate(); err != nil {
		return fmt.Errorf("bad Facility: %v", err)
	}
	return nil
}
// Validated ensures that the priority is correct.
Validated ensures that the priority is correct.
// Validated ensures that the priority is correct .
func (p Priority) Validate() error {
	if err := p.Severity.Validate(); err != nil {
		return fmt.Errorf("bad Severity: %v", err)
	}
	if err := p.Facility.Validate(); err != nil {
		return fmt.Errorf("bad Facility: %v", err)
	}
	return nil
}
func ( p Priority ) Validate ( ) error { if err := p . Severity . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := p . Facility . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
Validated ensures that the priority is correct.
Validated ensures that the priority is correct .