Proper exception handling samples.