au.com.prunge.jgenfile
Class ItemNameInUseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.io.IOException
                    |
                    +--au.com.prunge.jgenfile.JGenFileException
                          |
                          +--au.com.prunge.jgenfile.ItemNameInUseException
All Implemented Interfaces:
Serializable

public class ItemNameInUseException
extends JGenFileException

An exception that occurs when an attempt is made to rename or create an item with a name that another item in the same directory already has.

Version:
1.0
Author:
Peter Runge
See Also:
Serialized Form

Constructor Summary
ItemNameInUseException(String itemName)
          Constructs an ItemNameInUseException.
ItemNameInUseException(String itemName, String s)
          Constructs a ItemNameInUseException with a detail message.
ItemNameInUseException(String itemName, String s, Throwable cause)
          Constructs a ItemNameInUseException with a detail message and cause.
ItemNameInUseException(String itemName, Throwable cause)
          Constructs an ItemNameInUseException with a cause.
 
Method Summary
 String getItemName()
          Returns the item name that was in use.
 
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

ItemNameInUseException

public ItemNameInUseException(String itemName)
Constructs an ItemNameInUseException.

Parameters:
itemName - the name of the item that was in use.

ItemNameInUseException

public ItemNameInUseException(String itemName,
                              String s)
Constructs a ItemNameInUseException with a detail message.

Parameters:
itemName - the name of the item that was in use.
s - the detail message.

ItemNameInUseException

public ItemNameInUseException(String itemName,
                              Throwable cause)
Constructs an ItemNameInUseException with a cause.

Parameters:
itemName - the name of the item that was in use.
cause - the cause of this exception.

ItemNameInUseException

public ItemNameInUseException(String itemName,
                              String s,
                              Throwable cause)
Constructs a ItemNameInUseException with a detail message and cause.

Parameters:
itemName - the name of the item that was in use.
s - the detail message.
cause - the cause of this exception.
Method Detail

getItemName

public String getItemName()
Returns the item name that was in use.

Returns:
the item name that was in use.