Instead of throwing an exception, I would display a nice message and return ``1`` (to exit with an error code). It will be more friendly for the user than the display of the catched exception