diff --git a/tapeserver/castor/exception/Communication.cpp b/tapeserver/castor/exception/Communication.cpp deleted file mode 100644 index df8a0f8b9348e2365e2e196986ccc67a4f3cdd5e..0000000000000000000000000000000000000000 --- a/tapeserver/castor/exception/Communication.cpp +++ /dev/null @@ -1,42 +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/Communication.hpp" - -// ----------------------------------------------------------------------- -// Constructor -// ----------------------------------------------------------------------- -castor::exception::Communication::Communication(std::string requestId, - int errorCode) : - castor::exception::Exception(errorCode), m_requestId(requestId) {} - - -// ----------------------------------------------------------------------- -// Getting the request ID itself -// ----------------------------------------------------------------------- -std::string castor::exception::Communication::getRequestId() { - return m_requestId; -} diff --git a/tapeserver/castor/exception/Communication.hpp b/tapeserver/castor/exception/Communication.hpp deleted file mode 100644 index cc76802d0b38afea2ef3300994dbee1588a21dfc..0000000000000000000000000000000000000000 --- a/tapeserver/castor/exception/Communication.hpp +++ /dev/null @@ -1,66 +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. - * - * - * Communication error exception - * - * @author Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#pragma once - -// Include Files -#include "castor/exception/Exception.hpp" -#include <string> - -namespace castor { - - namespace exception { - - /** - * Communication exception - */ - class Communication : public castor::exception::Exception { - - public: - - /** - * Constructor - */ - Communication(std::string requestId, - int errorCode); - - /** - * Empty Destructor, explicitely non-throwing (needed for std::exception - * inheritance) - */ - virtual ~Communication() throw() {} - - std::string getRequestId(); - - private: - std::string m_requestId; - - }; - - - - } // end of namespace exception - -} // end of namespace castor -