Created global exception class .