com.croftsoft.core.lang
Class NullException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.croftsoft.core.lang.NullException
- All Implemented Interfaces:
- Serializable
public final class NullException
- extends RuntimeException
A RuntimeException that is thrown when the arguments are null.
The static convenience method check() is a useful shorthand
notation for checking whether object constructor method arguments
are null:
public Book (
final String title,
final String author )
{
NullException.check (
this.title = title,
this.author = author );
}
- Since:
- 2008-02-10
- Version:
- $Id: NullException.java,v 1.1 2008/02/10 22:53:21 croft Exp $
- See Also:
- Serialized Form
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NullException
public NullException()
NullException
public NullException(String detailMessage)
check
public static void check(Object... args)
CroftSoft Core Javadoc (2008-09-28 20:58:02)