ABSTRACT

The fi rst method in TraceUtil is one called Trace , capitalized because of the name confl ict with the trace statement itself. It simply traces out the given message, assuming that the category matches what’s in the fi lter array. Additionally, if you’re in the throes of debugging a serious issue, you can set the throwErrors fl ag to true and the method will throw an actual error when a message with that type is sent. When you’re done testing and don’t want runtime errors thrown, you can turn this fl ag back off.