Package de.aristaflow.adept2.util
Class NullArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- de.aristaflow.adept2.util.NullArgumentException
-
- All Implemented Interfaces:
Serializable
public class NullArgumentException extends IllegalArgumentException
TheNullArgumentException
is a specialIllegalArgumentException
that must be thrown when a parameter isnull
and it is not allowed to be.- Author:
- Patrick Schmidt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullArgumentException()
Constructs a newNullArgumentException
withnull
as detail message.NullArgumentException(String message)
Constructs a newNullArgumentException
with the specified detail message.NullArgumentException(String message, Throwable cause)
Constructs a newNullArgumentException
with the specified detail message and cause.NullArgumentException(Throwable cause)
Constructs a newNullArgumentException
withnull
as detail message and the given cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NullArgumentException
public NullArgumentException()
Constructs a newNullArgumentException
withnull
as detail message.
-
NullArgumentException
public NullArgumentException(String message)
Constructs a newNullArgumentException
with the specified detail message.- Parameters:
message
- the detail message
-
NullArgumentException
public NullArgumentException(String message, Throwable cause)
Constructs a newNullArgumentException
with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause of this exception
-
NullArgumentException
public NullArgumentException(Throwable cause)
Constructs a newNullArgumentException
withnull
as detail message and the given cause.- Parameters:
cause
- the cause of this exception
-
-