Revised documentation to include thrown exception.