Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
5c5bae38
Commit
5c5bae38
authored
Aug 20, 2013
by
Steven Murray
Browse files
Added castor::exception::Mismatch
parent
33e86cb1
Changes
5
Hide whitespace changes
Inline
Side-by-side
castor/exception/Mismatch.cpp
0 → 100644
View file @
5c5bae38
/******************************************************************************
* 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
)
{
}
castor/exception/Mismatch.hpp
0 → 100644
View file @
5c5bae38
/******************************************************************************
* 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
common/Imakefile
View file @
5c5bae38
...
...
@@ -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 \
...
...
common/serror.c
View file @
5c5bae38
...
...
@@ -66,6 +66,7 @@ char *sys_serrlist[SEMAXERR-SEBASEOFF+2]=
"Invalid configuration"
,
"Failed to execute Python"
,
"Missing operand"
,
"Mismatch"
,
"BAD ERROR NUMBER"
};
...
...
h/serrno.h
View file @
5c5bae38
...
...
@@ -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+4
5
/* Maximum error number */
#define SEMAXERR SEBASEOFF+4
6
/* Maximum error number */
#define SERRNO (serrno - SEBASEOFF)
/* User convenience */
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment