Made corrections so everything compiles.
Bugfix: The printed exception message numbers the reasons correctly now.