Unicode Encoded Badge A steaming cup of coffee

SavvyJ messages and codes

SavvyJ messages have a unique ID, to make it easy to search for them. That's the whole point.

Messages are generally in one of three groups:

SeverityDetails
i Information. Useful data about fairly normal events
s Surprise. e.g. A file was missing, or an attempt was made to add 2 to "Hello, Graham" instead of another number
a Astonishment. Surprise was no longer adequate :-)

By default, the message code SVJxxxxx appears in the app as well as in log files (if being written).

In general, log files are named by date yyyy-mm-dd to make sorting and archiving easy, and messages have a 24-hour timestamp hh:mm:ss.mmm so it's fairly easy to find messages by ID or by date/time.

Information

Message ID Severity Description
SVJ1001 i Processing input file ~1~
SVJ1002 i Output file is '~1~'
SVJ1003 i Items processed ~1~

Surprise

Message ID Severity Description
SVJ0001 s Invalid integer data '~1~' in ~2~
SVJ0002 s Unknown verb '~1~' in line ~2~ of file ~2~
SVJ0003 s Ghastly undefined variable problem in '~1~' line ~2~

Astonishment

Message ID Severity Description
SVJ0666 a Internal error - can't swap stack items. Stack depth is ~1~