Error called molecule has wrong number of fragments for method. Prints error message msg to standard output stream.