add exception example to sample