Improved exceptions and reporting exceptions for command-line compiler.

Thats just a matter of taste :-) ,but yes, may be yours has better readabilty :-)