com.gisgraphy.domain.repository.exception
Class DuplicateNameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gisgraphy.domain.repository.exception.DuplicateNameException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateNameException
extends java.lang.RuntimeException

Exception is throws when a GisFeature of the same name already exists The constraint is not in the database because, it depends of the Class of the gisFeature. e.g : Country can not have duplicate name

Author:
David Masclet
See Also:
Serialized Form

Constructor Summary
DuplicateNameException()
          Default constructor
DuplicateNameException(java.lang.String message)
          Constructor
DuplicateNameException(java.lang.String message, java.lang.Throwable cause)
          Constructor
DuplicateNameException(java.lang.Throwable cause)
          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

DuplicateNameException

public DuplicateNameException()
Default constructor


DuplicateNameException

public DuplicateNameException(java.lang.String message,
                              java.lang.Throwable cause)
Constructor

Parameters:
message - The message
cause - The cause

DuplicateNameException

public DuplicateNameException(java.lang.String message)
Constructor

Parameters:
message - The message

DuplicateNameException

public DuplicateNameException(java.lang.Throwable cause)
Constructor

Parameters:
cause - The cause


Copyright © 2010. All Rights Reserved.