- Object
-
- Throwable
-
- Exception
-
- RuntimeException
-
- NullPointerException
-
- NullElementException
-
- All Implemented Interfaces:
Serializable
public class NullElementException extends NullPointerException
Represents an exception when a collection has a null element.- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- William Bittle
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullElementException(String argumentName)
Minimal constructor.NullElementException(String argumentName, int index)
Constructor when the index is know.
-
Method Summary
-
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NullElementException
public NullElementException(String argumentName, int index)
Constructor when the index is know.- Parameters:
argumentName
- the name of the argument that contains the null elementindex
- the index of the null element
-
NullElementException
public NullElementException(String argumentName)
Minimal constructor.- Parameters:
argumentName
- the name of the argument that contains the null element
-
-