Top Description Fields Constructors Methods
org.apache.commons.math3.exception

public Class NullArgumentException

extends MathIllegalArgumentException
Class Inheritance
Imports
org.apache.commons.math3.exception.util.Localizable, .LocalizedFormats

All conditions checks that fail due to a null argument must throw this exception. This class is meant to signal a precondition violation ("null is an illegal argument") and so does not extend the standard NullPointerException. Propagation of NullPointerException from within Commons-Math is construed to be a bug.
Since
2.2

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
NullArgumentException()

Default constructor.

public
NullArgumentException(Localizable
Message pattern providing the specific context of the error.
pattern
,
Object...
Values for replacing the placeholders in pattern.
arguments
)

Method Summary

Inherited from org.apache.commons.math3.exception.MathIllegalArgumentException:
getContextgetLocalizedMessagegetMessage

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.math3.exception.MathIllegalArgumentException.serialVersionUID.

Serializable version Id.

Constructor Detail

NullArgumentExceptionback to summary
public NullArgumentException()

Default constructor.

NullArgumentExceptionback to summary
public NullArgumentException(Localizable pattern, Object... arguments)
Parameters
pattern:Localizable

Message pattern providing the specific context of the error.

arguments:Object[]

Values for replacing the placeholders in pattern.