Used typed exception for segmentation problems.