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
9c5a5be8
Commit
9c5a5be8
authored
Aug 30, 2016
by
Victor Kotlyar
Browse files
Renamed castor::exception::MissingOperand to
cta::exception::MissingOperand
parent
21d7857d
Changes
9
Hide whitespace changes
Inline
Side-by-side
common/CMakeLists.txt
View file @
9c5a5be8
...
...
@@ -76,6 +76,7 @@ set (COMMON_LIB_SRC_FILES
exception/CommandLineNotParsed.cpp
exception/InvalidArgument.cpp
exception/InvalidConfigEntry.cpp
exception/MissingOperand.cpp
log/DummyLogger.cpp
log/LogContext.cpp
log/Logger.cpp
...
...
tapeserver/castor
/exception/MissingOperand.cpp
→
common
/exception/MissingOperand.cpp
View file @
9c5a5be8
...
...
@@ -21,12 +21,12 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include
"c
astor
/exception/MissingOperand.hpp"
#include
"c
ommon
/exception/MissingOperand.hpp"
// -----------------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------------
ca
stor
::
exception
::
MissingOperand
::
MissingOperand
()
:
c
t
a
::
exception
::
MissingOperand
::
MissingOperand
()
:
cta
::
exception
::
Exception
()
{
}
tapeserver/castor
/exception/MissingOperand.hpp
→
common
/exception/MissingOperand.hpp
View file @
9c5a5be8
...
...
@@ -25,7 +25,7 @@
#include
"common/exception/Exception.hpp"
namespace
ca
stor
{
namespace
exception
{
namespace
c
t
a
{
namespace
exception
{
/**
* Missing operand.
...
...
@@ -41,5 +41,5 @@ namespace castor { namespace exception {
};
// class MissingOperand
}
}
// namespace ca
stor
exception
}
}
// namespace c
t
a exception
tapeserver/castor/mediachanger/CmdLine.cpp
View file @
9c5a5be8
...
...
@@ -23,14 +23,14 @@
#include
"castor/mediachanger/CmdLine.hpp"
#include
"common/exception/InvalidArgument.hpp"
#include
"c
astor
/exception/MissingOperand.hpp"
#include
"c
ommon
/exception/MissingOperand.hpp"
#include
<getopt.h>
//------------------------------------------------------------------------------
// handleMissingParameter
//------------------------------------------------------------------------------
void
castor
::
mediachanger
::
CmdLine
::
handleMissingParameter
(
const
int
opt
)
{
ca
stor
::
exception
::
MissingOperand
ex
;
c
t
a
::
exception
::
MissingOperand
ex
;
ex
.
getMessage
()
<<
"The -"
<<
(
char
)
opt
<<
" option requires a parameter"
;
throw
ex
;
}
...
...
tapeserver/castor/mediachanger/DismountCmd.hpp
View file @
9c5a5be8
...
...
@@ -24,7 +24,7 @@
#pragma once
#include
"common/exception/InvalidArgument.hpp"
#include
"c
astor
/exception/MissingOperand.hpp"
#include
"c
ommon
/exception/MissingOperand.hpp"
#include
"castor/mediachanger/CmdLineTool.hpp"
#include
"castor/mediachanger/DismountCmdLine.hpp"
...
...
tapeserver/castor/mediachanger/DismountCmdLine.cpp
View file @
9c5a5be8
...
...
@@ -21,7 +21,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include
"c
astor
/exception/MissingOperand.hpp"
#include
"c
ommon
/exception/MissingOperand.hpp"
#include
"castor/mediachanger/DismountCmdLine.hpp"
#include
"castor/mediachanger/LibrarySlotParser.hpp"
#include
"common/exception/Exception.hpp"
...
...
@@ -74,7 +74,7 @@ castor::mediachanger::DismountCmdLine::DismountCmdLine(const int argc,
// Check that both VID and DRIVE_SLOT has been specified
if
(
nbArgs
<
2
)
{
ca
stor
::
exception
::
MissingOperand
ex
;
c
t
a
::
exception
::
MissingOperand
ex
;
ex
.
getMessage
()
<<
"Both VID and DRIVE_SLOT must be specified"
;
throw
ex
;
}
...
...
tapeserver/castor/mediachanger/MountCmd.hpp
View file @
9c5a5be8
...
...
@@ -24,7 +24,7 @@
#pragma once
#include
"common/exception/InvalidArgument.hpp"
#include
"c
astor
/exception/MissingOperand.hpp"
#include
"c
ommon
/exception/MissingOperand.hpp"
#include
"castor/mediachanger/CmdLineTool.hpp"
#include
"castor/mediachanger/MountCmdLine.hpp"
...
...
tapeserver/castor/mediachanger/MountCmdLine.cpp
View file @
9c5a5be8
...
...
@@ -21,7 +21,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include
"c
astor
/exception/MissingOperand.hpp"
#include
"c
ommon
/exception/MissingOperand.hpp"
#include
"castor/mediachanger/MountCmdLine.hpp"
#include
"common/exception/Exception.hpp"
...
...
@@ -73,7 +73,7 @@ castor::mediachanger::MountCmdLine::MountCmdLine(const int argc,
// Check that both VID and DRIVE_SLOT has been specified
if
(
nbArgs
<
2
)
{
ca
stor
::
exception
::
MissingOperand
ex
;
c
t
a
::
exception
::
MissingOperand
ex
;
ex
.
getMessage
()
<<
"Both VID and DRIVE_SLOT must be specified"
;
throw
ex
;
}
...
...
tapeserver/castor/utils/CMakeLists.txt
View file @
9c5a5be8
...
...
@@ -33,7 +33,6 @@ set (UTILS_LIB_SRC_FILES
../exception/NoEntry.cpp
../exception/Errnum.cpp
../exception/NotAnOwner.cpp
../exception/MissingOperand.cpp
../exception/NoPortInRange.cpp
../exception/TimeOut.cpp
../exception/OutOfMemory.cpp
...
...
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