public class NullArgumentException extends ConsumerContractException
null argument was provided. This error can only result
for methods that define parameters. Consumers are not permitted to supply
null values for method arguments.| Constructor and Description |
|---|
NullArgumentException(java.lang.String msg)
Constructs a
NullArgumentException with the specified
detail message. |
NullArgumentException(java.lang.String msg,
java.lang.Throwable t)
Constructs a
NullArgumentException with the specified
detail message and cause. |
NullArgumentException(java.lang.Throwable t)
Constructs a
NullArgumentException with the specified
cause and a detail message of
cause.toString() which typically contains the class and
detail message of cause. |
public NullArgumentException(java.lang.String msg)
NullArgumentException with the specified
detail message. The error message string msg can
later be retrieved by the getMessage() method of
Throwable.msg - the error messagepublic NullArgumentException(java.lang.String msg,
java.lang.Throwable t)
NullArgumentException with the specified
detail message and cause. The error message string msg can
later be retrieved by the getMessage() method of
Throwable.msg - the error messaget - the cause of the exceptionpublic NullArgumentException(java.lang.Throwable t)
NullArgumentException with the specified
cause and a detail message of
cause.toString() which typically contains the class and
detail message of cause.t - the cause of the exception