diff --git a/tapeserver/castor/exception/SQLError.cpp b/tapeserver/castor/exception/SQLError.cpp deleted file mode 100644 index dfdad7559225a2c843bfd35ab4bec57e5ee73e07..0000000000000000000000000000000000000000 --- a/tapeserver/castor/exception/SQLError.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/****************************************************************************** - * - * This file is part of the Castor project. - * See http://castor.web.cern.ch/castor - * - * Copyright (C) 2003 CERN - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * - * - * - * @author Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -// Include Files -#include "serrno.h" -#include "castor/exception/SQLError.hpp" - -// ----------------------------------------------------------------------- -// Constructor -// ----------------------------------------------------------------------- -castor::exception::SQLError::SQLError() : - castor::exception::Exception(SESQLERR), - sqlErrorCode(0) {} - -void castor::exception::SQLError::setSQLErrorCode(int code) -{ - sqlErrorCode = code; -} - -int castor::exception::SQLError::getSQLErrorCode() -{ - return sqlErrorCode; -} - diff --git a/tapeserver/castor/exception/SQLError.hpp b/tapeserver/castor/exception/SQLError.hpp deleted file mode 100644 index 762a6055056bea94eb04aa4a575564f2b83c624f..0000000000000000000000000000000000000000 --- a/tapeserver/castor/exception/SQLError.hpp +++ /dev/null @@ -1,57 +0,0 @@ -/****************************************************************************** - * - * This file is part of the Castor project. - * See http://castor.web.cern.ch/castor - * - * Copyright (C) 2003 CERN - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * - * SQL error exception - * - * @author Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#pragma once - -// Include Files -#include "castor/exception/Exception.hpp" - -namespace castor { - - namespace exception { - - /** - * SQL error exception - */ - class SQLError : public castor::exception::Exception { - - public: - - /** - * default constructor - */ - SQLError(); - - void setSQLErrorCode(int code); - int getSQLErrorCode(); - - private: - int sqlErrorCode; - - }; - - } // end of namespace exception - -} // end of namespace castor -