sshikov / jsendnsca

Automatically exported from code.google.com/p/jsendnsca
0 stars 0 forks source link

MessagePayload level set to UNKNOWN if setLevel(String..) is not recognised #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For the MessagePayload object, when setting the level via a string, if the
String is not OK, WARNING or CRITICAL, it sets the level as UNKNOWN

Should really throw an IllegalArgumentException instead if not one of the
following

OK
WARNING
CRITICAL
UNKNOWN

Also, should allow case insensitive setting so OK, ok or Ok should all work.

Original issue reported on code.google.com by rajneeshpatel on 19 Nov 2008 at 7:36

GoogleCodeExporter commented 9 years ago
Unit tests and modified code checked in.

Original comment by rajneeshpatel on 19 Nov 2008 at 7:45