org.moyoman.util
Class DataAlreadyExistsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalArgumentException
                          |
                          +--org.moyoman.util.DataAlreadyExistsException
All Implemented Interfaces:
Serializable

public class DataAlreadyExistsException
extends IllegalArgumentException

This exception is thrown when an attempt to add data fails because the data already exists.

See Also:
Serialized Form

Field Summary
private  String msg
          The error message.
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DataAlreadyExistsException(String str)
          Create the exception.
 
Method Summary
 String toString()
          Get the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

msg

private String msg
The error message.

Constructor Detail

DataAlreadyExistsException

public DataAlreadyExistsException(String str)
Create the exception.

Parameters:
str - The specific error that occurred.
Method Detail

toString

public String toString()
Get the error message.

Overrides:
toString in class Throwable
Returns:
A String which is the error message.