Module java.base
Package java.util

Class NoSuchElementException

    • Constructor Detail

      • NoSuchElementException

        public NoSuchElementException()
        Constructs aNoSuchElementException withnull as its error message string.
      • NoSuchElementException

        public NoSuchElementException​(String s)
        Constructs aNoSuchElementException, saving a reference to the error message strings for later retrieval by thegetMessage method.
        Parameters:
        s - the detail message.