func (s Severity) Validate() error {
	if s < 0 || s >= severityTooLarge {
		return fmt.Errorf("severity %d not recognized", s)
	}
	return nil
}
// Validate ensures that the severity is correct. This will fail only
// in cases where an unsupported int is converted into a Severity.
Validate ensures that the severity is correct. This will fail only
in cases where an unsupported int is converted into a Severity.
// Validate ensures that the severity is correct . This will fail only // in cases where an unsupported int is converted into a Severity .
func (s Severity) Validate() error {
	if s < 0 || s >= severityTooLarge {
		return fmt.Errorf("severity %d not recognized", s)
	}
	return nil
}
func ( s Severity ) Validate ( ) error { if s < 0 || s >= severityTooLarge { return fmt . Errorf ( " " , s ) } return nil }
Validate ensures that the severity is correct.
Validate ensures that the severity is correct .