001/*
002        $Id: ItemAlreadyExistsException.java 3207 2009-04-09 06:48:11Z gregory $
003
004        Copyright (C) 2006 Gregory Vincic, Jari Hakkinen, Olle Mansson
005        Copyright (C) 2007 Gregory Vincic
006
007        This file is part of Proteios.
008        Available at http://www.proteios.org/
009
010        Proteios is free software; you can redistribute it and/or modify it
011        under the terms of the GNU General Public License as published by
012        the Free Software Foundati      BioArray Software Environment (Proteios) - http://base.thep.lu.se/
013        Copyright (C) 2002-2004 Lao Saal, Carl Troein,
014        Johan Vallon-Christersson, Jari H�kkinen, Nicklas Nordborg
015
016        This file is part of Proteios.
017
018        Proteios is free software; you can redistribute it and/or
019        modify it under the terms of the GNU General Public License
020        as published by the Free Software Foundation; either version 2
021        of the License, or (at your option) any later version.
022
023        Proteios is distributed in the hope that it will be useful,
024        but WITHOUT ANY WARRANTY; without even the implied warranty of
025        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
026        GNU General Public License for more details.
027
028        You should have received a copy of the GNU General Public License
029        along with this program; if not, write to the Free Software
030        Foundation, Inc., 59 Temple Place - Suite 330,
031        Boston, MA  02111-1307, USA.
032on; either version 2 of the License, or
033        (at your option) any later version.
034
035        Proteios is distributed in the hope that it will be useful, but
036        WITHOUT ANY WARRANTY; without even the implied warranty of
037        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
038        General Public License for more details.
039
040        You should have received a copy of the GNU General Public License
041        along with this program; if not, write to the Free Software
042        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
043        02111-1307, USA.
044*/
045package org.proteios.core;
046
047/**
048        This exception is thrown when trying to save an object 
049        and another object with the same ID already exists.
050
051        @author Nicklas
052        @version 2.0
053*/
054@SuppressWarnings("serial")
055public class ItemAlreadyExistsException
056        extends InvalidDataException
057{
058        
059        /**
060                Creates a new <code>ItemAlreadyExistsException</code>. The error
061                message produced will look like:
062                <code>Item already exists: User[Login=peter]
063
064                @param what A description of what already exists, for 
065                        example User[Login=peter]
066        */
067        public ItemAlreadyExistsException(String what)
068        {
069                super("Item already exists: "+what);
070        }
071        
072
073}
074
075
076