Change throws statement to specialized Exception.