Now suppose you need to direct the output somewhere else, e.g. to a logfile, or across a serial link in an embedded system.  Put this in the header:
 
Now suppose you need to direct the output somewhere else, e.g. to a logfile, or across a serial link in an embedded system.  Put this in the header:
   Exception encountered, of type "Error"