Commit 5c5bae38 authored by Steven Murray's avatar Steven Murray
Browse files

Added castor::exception::Mismatch

parent 33e86cb1
/******************************************************************************
* Mismatch.cpp
*
* 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 "castor/exception/Mismatch.hpp"
#include "h/serrno.h"
// -----------------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------------
castor::exception::Mismatch::Mismatch():
castor::exception::Exception(SEMISMATCH) {
}
/******************************************************************************
* Mismatch.hpp
*
* 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
*****************************************************************************/
#ifndef CASTOR_EXCEPTION_MISMATCH_HPP
#define CASTOR_EXCEPTION_MISMATCH_HPP 1
#include "castor/exception/Exception.hpp"
namespace castor { namespace exception {
/**
* Failed to mount volume.
*/
class Mismatch : public castor::exception::Exception {
public:
/**
* Constructor
*/
Mismatch();
}; // class Mismatch
} } // namespace castor exception
#endif // CASTOR_EXCEPTION_MISMATCH_HPP
......@@ -28,6 +28,7 @@ COMMONLIB_OBJS = $(SYSDEP_OBJS) \
../castor/exception/InvalidConfigEntry.o \
../castor/exception/InvalidConfiguration.o \
../castor/exception/Internal.o \
../castor/exception/Mismatch.o \
../castor/exception/NotSupported.o \
../castor/exception/OutOfMemory.o \
../castor/exception/QueryVolumeFailed.o \
......
......@@ -66,6 +66,7 @@ char *sys_serrlist[SEMAXERR-SEBASEOFF+2]=
"Invalid configuration",
"Failed to execute Python",
"Missing operand",
"Mismatch",
"BAD ERROR NUMBER"
};
......
......@@ -77,8 +77,9 @@
#define SEINVALIDCONFIG SEBASEOFF+43 /* Invalid configuration */
#define SEPYTHONEXEC SEBASEOFF+44 /* Failed to execute Python */
#define SEMISSINGOPER SEBASEOFF+45 /* Missing operand */
#define SEMISMATCH SEBASEOFF+46 /* Mismatch */
#define SEMAXERR SEBASEOFF+45 /* Maximum error number */
#define SEMAXERR SEBASEOFF+46 /* Maximum error number */
#define SERRNO (serrno - SEBASEOFF) /* User convenience */
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment