Change Gay Exeptions in if else constructs