Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class NullArgumentException extends IllegalArgumentException
| Constructor and Description |
|---|
NullArgumentException(String argument) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T argument)
Checks an argument and throws an exception if null.
|
static <T> T |
checkNotNull(T argument,
String argumentName)
Checks an argument and throws an exception if null.
|
String |
getArgument()
Gets the name of the argument that was null.
|
String |
getLocalizedMessage() |
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NullArgumentException(String argument)
public static <T> T checkNotNull(T argument)
throws NullArgumentException
NullArgumentExceptionpublic static <T> T checkNotNull(T argument,
String argumentName)
throws NullArgumentException
NullArgumentExceptionpublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getArgument()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.