It throws at main method encrypt or decrypt. It is not catching exceptions here.