Move all output to throw() function