Created custom exception class