Introduction with Sample Code: Exception Exception terminates execution on error # raises exception if path is not valid f = open(path) No such file or directory (Errno::ENOENT) better than FILE *f = fopen(path, "r"); if (f == NULL) { fprintf(stderr, "can't open file: %s\n", path); exit(1); }