I want to do something for translated exception error, right now I can put switch statement in the function if the user is using English language, throw exception in English