java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
net.luis.utils.exception.NoSuchItemException
- All Implemented Interfaces:
Serializable
Thrown when a requested item does not exist in a collection like object.
Library equivalent of
Library equivalent of
NoSuchElementException
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new no such item exception with no details.NoSuchItemException
(@Nullable String message) Constructs a new no such item exception with the specified message.NoSuchItemException
(@Nullable String message, @Nullable Throwable cause) Constructs a new no such item exception with the specified message and cause.NoSuchItemException
(@Nullable Throwable cause) Constructs a new no such item exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchItemException
public NoSuchItemException()Constructs a new no such item exception with no details. -
NoSuchItemException
Constructs a new no such item exception with the specified message.- Parameters:
message
- The message of the exception
-
NoSuchItemException
Constructs a new no such item exception with the specified message and cause.- Parameters:
message
- The message of the exceptioncause
- The cause of the exception
-
NoSuchItemException
Constructs a new no such item exception with the specified cause.- Parameters:
cause
- The cause of the exception
-