Add DictionaryException & try/catch in main

Add throw in translate method