exception NoSuchElementException
Exception NoSuchElementException
should be thrown when an operation that requires a particular element to exist is attempted yet no such element exists. This exception is commonly thrown when a collection is empty and a method attempts to manipulate its elements.
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
create() Creates a |
public |
() |
create(String message) Creates a |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
destroy() |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly |
(NoSuchElementException) |
copy(AddressMap addresses) |
public create() => ()
Creates a NoSuchElementException
with no message.
public create(String message) => ()
Creates a NoSuchElementException
with a message.
message
- message explaining what caused the exception
public destroy() => ()
public readonly copy(AddressMap addresses) => (NoSuchElementException)