mime.files.common.MimeFileException on parsing error.
string[] lines = ["application/x-archive:package-x-generic", "application/x-perl:text-x-script"]; auto expected = [IconLine("application/x-archive", "package-x-generic"), IconLine("application/x-perl", "text-x-script")]; assert(equal(iconsFileReader(lines), expected)); assertThrown!MimeFileException(iconsFileReader(["application/nocolon"]).array, "must throw");
Parse mime/icons or mime/generic-icons file by line ignoring empty lines and comments.