check exception example