public class NullArgumentException extends NullPointerException implements LocalizedException
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 Hipparchus is
construed to be a bug.
Note: from 1.0 onwards, this class extends NullPointerException instead
of MathIllegalArgumentException.
| Constructor and Description |
|---|
NullArgumentException()
Default constructor.
|
NullArgumentException(Localizable specifier,
Object... parts)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage() |
String |
getMessage() |
String |
getMessage(Locale locale)
Gets the message in a specified locale.
|
Object[] |
getParts()
Get the variable parts of the error message.
|
Localizable |
getSpecifier()
Get the localizable specifier of the error message.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NullArgumentException()
public NullArgumentException(Localizable specifier, Object... parts)
specifier - format specifier (to be translated).parts - parts to insert in the format (no translation).public String getMessage(Locale locale)
getMessage in interface LocalizedExceptionlocale - Locale in which the message should be translatedpublic String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic Localizable getSpecifier()
getSpecifier in interface LocalizedExceptionpublic Object[] getParts()
getParts in interface LocalizedExceptionCopyright © 2016-2022 CS GROUP. All rights reserved.