Intel

Developer Zone

NoSuchElementException

java.util

Class NoSuchElementException



  • public class NoSuchElementException
    extends RuntimeException
    A NoSuchElementException is thrown when trying to retrieve an element past the end of an Enumeration, or the first or last element from an empty Vector.
    See Also:
    Enumeration, RuntimeException
    • Constructor Detail

      • NoSuchElementException

        public NoSuchElementException()
        Constructs a new NoSuchElementException with the current stack trace filled in.
      • NoSuchElementException

        public NoSuchElementException(String detailMessage)
        Constructs a new NoSuchElementException with the current stack trace and message filled in.
        Parameters:
        detailMessage - the detail message for the exception.