added constant for zero, included e.getMessage in formatted exception message