de.smartics.util.lang
Class BlankExceptNullArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by de.smartics.util.lang.BlankExceptNullArgumentException
All Implemented Interfaces:
Serializable

public class BlankExceptNullArgumentException
     
     
extends IllegalArgumentException

Signals that a given String argument is not null but contains only whitespaces or is empty.

See Also:
Serialized Form

Constructor Summary
BlankExceptNullArgumentException()
          Convenience constructor if no argument name needs to be provided.
BlankExceptNullArgumentException(String argName)
          Convenience constructor.
BlankExceptNullArgumentException(String argName, String message)
          Default constructor.
 
Method Summary
 
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

BlankExceptNullArgumentException

public BlankExceptNullArgumentException()
Convenience constructor if no argument name needs to be provided. This constructor is not recommended since the exception's message is less verbose.


BlankExceptNullArgumentException

public BlankExceptNullArgumentException(String argName)
Convenience constructor.

Parameters:
argName - the name of the String argument that contains only whitespaces or was empty.

BlankExceptNullArgumentException

public BlankExceptNullArgumentException(String argName,
                                        String message)
Default constructor.

Parameters:
argName - the name of the String argument that contains only whitespaces or was empty.
message - an optional additional message to provide information about the context of the argument.
See Also:
IllegalArgumentException.IllegalArgumentException(java.lang.String)


Copyright © 2011–2013 smartics. All rights reserved.