com.croftsoft.core.lang
Class NullException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
NullException()
           
NullException(String detailMessage)
           
 
Method Summary
static void check(Object... args)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullException

public NullException()

NullException

public NullException(String detailMessage)
Method Detail

check

public static void check(Object... args)

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)