Handle NoSuchElementException for error mtype parsing