org.sql.generation.api.common
Class NullArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.sql.generation.api.common.NullArgumentException
All Implemented Interfaces:
Serializable

public class NullArgumentException
extends RuntimeException

Pretty much copy of org.qi4j.api.util.NullArgumentException.

See Also:
Serialized Form

Method Summary
static void validateNotNull(String parameterName, Object object)
          Validates that passed object is not null.
 
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
 

Method Detail

validateNotNull

public static void validateNotNull(String parameterName,
                                   Object object)
Validates that passed object is not null.

Parameters:
parameterName - The name of the parameter.
object - The parameter.
Throws:
NullArgumentException - If object is null.


Copyright © 2010-2012. All Rights Reserved.