de.smartics.util.lang
Class BlankArgumentException

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.BlankArgumentException
All Implemented Interfaces:
Serializable

public class BlankArgumentException
     
     
extends IllegalArgumentException

Signals that a given String argument is blank where is must no be blank.

See Also:
Serialized Form

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

BlankArgumentException

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


BlankArgumentException

public BlankArgumentException(String argName)
Convenience constructor.

Parameters:
argName - the name of the String argument that was blank.

BlankArgumentException

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

Parameters:
argName - the name of the String argument that was blank.
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.