Skip to content
GitLab
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
0ac5c517
Commit
0ac5c517
authored
Jul 22, 2013
by
Steven Murray
Browse files
Added the exception castor::exception::MissingOperand
parent
2b189169
Changes
5
Hide whitespace changes
Inline
Side-by-side
castor/exception/MissingOperand.cpp
0 → 100644
View file @
0ac5c517
/******************************************************************************
* MissingOperand.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/MissingOperand.hpp"
#include
"h/serrno.h"
// -----------------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------------
castor
::
exception
::
MissingOperand
::
MissingOperand
()
:
castor
::
exception
::
Exception
(
SEMISSINGOPER
)
{
}
castor/exception/MissingOperand.hpp
0 → 100644
View file @
0ac5c517
/******************************************************************************
* MissingOperand.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_MISSING_OPERAND_HPP
#define CASTOR_EXCEPTION_MISSING_OPERAND_HPP 1
#include
"castor/exception/Exception.hpp"
#include
<string>
namespace
castor
{
namespace
exception
{
/**
* Missing operand.
*/
class
MissingOperand
:
public
castor
::
exception
::
Exception
{
public:
/**
* Constructor
*/
MissingOperand
();
};
// class MissingOperand
}
}
// namespace castor exception
#endif // CASTOR_EXCEPTION_MISSING_OPERAND_HPP
common/Imakefile
View file @
0ac5c517
...
...
@@ -30,6 +30,7 @@ COMMONLIB_OBJS = $(SYSDEP_OBJS) \
../castor/exception/NotSupported.o \
../castor/exception/OutOfMemory.o \
../castor/exception/Communication.o \
../castor/exception/MissingOperand.o \
../castor/exception/NoEntry.o \
../castor/exception/NoPortInRange.o \
../castor/exception/NoSegmentFound.o \
...
...
common/serror.c
View file @
0ac5c517
...
...
@@ -65,6 +65,7 @@ char *sys_serrlist[SEMAXERR-SEBASEOFF+2]=
"No value"
,
"Invalid configuration"
,
"Failed to execute Python"
,
"Missing operand"
,
"BAD ERROR NUMBER"
};
...
...
h/serrno.h
View file @
0ac5c517
...
...
@@ -76,8 +76,9 @@
#define SENOVALUE SEBASEOFF+42
/* No value */
#define SEINVALIDCONFIG SEBASEOFF+43
/* Invalid configuration */
#define SEPYTHONEXEC SEBASEOFF+44
/* Failed to execute Python */
#define SEMISSINGOPER SEBASEOFF+45
/* Missing operand */
#define SEMAXERR SEBASEOFF+4
4
/* Maximum error number */
#define SEMAXERR SEBASEOFF+4
5
/* Maximum error number */
#define SERRNO (serrno - SEBASEOFF)
/* User convenience */
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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