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
d606f24a
Commit
d606f24a
authored
Aug 30, 2016
by
Victor Kotlyar
Browse files
Renamed castor::exception::NotAnOwner to
cta::exception::NotAnOwner
parent
5369b171
Changes
13
Hide whitespace changes
Inline
Side-by-side
common/CMakeLists.txt
View file @
d606f24a
...
...
@@ -79,6 +79,7 @@ set (COMMON_LIB_SRC_FILES
exception/MissingOperand.cpp
exception/NoEntry.cpp
exception/NoPortInRange.cpp
exception/NotAnOwner.cpp
log/DummyLogger.cpp
log/LogContext.cpp
log/Logger.cpp
...
...
tapeserver/castor
/exception/NotAnOwner.cpp
→
common
/exception/NotAnOwner.cpp
View file @
d606f24a
...
...
@@ -21,12 +21,12 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include "c
astor
/exception/NotAnOwner.hpp"
#include "c
ommon
/exception/NotAnOwner.hpp"
// -----------------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------------
ca
stor
::
exception
::
NotAnOwner
::
NotAnOwner
()
:
c
t
a
::
exception
::
NotAnOwner
::
NotAnOwner
()
:
cta
::
exception
::
Exception
()
{
}
tapeserver/castor
/exception/NotAnOwner.hpp
→
common
/exception/NotAnOwner.hpp
View file @
d606f24a
...
...
@@ -25,7 +25,7 @@
#include "common/exception/Exception.hpp"
namespace
ca
stor
{
namespace
exception
{
namespace
c
t
a
{
namespace
exception
{
/**
* Not an owner.
...
...
@@ -41,5 +41,5 @@ namespace castor { namespace exception {
};
// class NotAnOwner
}
}
// namespace ca
stor
exception
}
}
// namespace c
t
a exception
tapeserver/castor/messages/SmartZmqContext.cpp
View file @
d606f24a
...
...
@@ -94,7 +94,7 @@ void *castor::messages::SmartZmqContext::get() const throw() {
void
*
castor
::
messages
::
SmartZmqContext
::
release
()
{
// If this smart pointer does not own a ZMQ context
if
(
NULL
==
m_zmqContext
)
{
ca
stor
::
exception
::
NotAnOwner
ex
;
c
t
a
::
exception
::
NotAnOwner
ex
;
ex
.
getMessage
()
<<
"Smart pointer does not own a ZMQ context"
;
throw
ex
;
}
...
...
tapeserver/castor/messages/SmartZmqContext.hpp
View file @
d606f24a
...
...
@@ -23,7 +23,7 @@
#pragma once
#include "c
astor
/exception/NotAnOwner.hpp"
#include "c
ommon
/exception/NotAnOwner.hpp"
#include <stdio.h>
...
...
tapeserver/castor/messages/ZmqMsg.hpp
View file @
d606f24a
...
...
@@ -23,7 +23,7 @@
#pragma once
#include "c
astor
/exception/NotAnOwner.hpp"
#include "c
ommon
/exception/NotAnOwner.hpp"
#include <stdio.h>
#include <zmq.h>
...
...
tapeserver/castor/utils/CMakeLists.txt
View file @
d606f24a
...
...
@@ -31,7 +31,6 @@ set (UTILS_LIB_SRC_FILES
utils.cpp
../common/CastorConfiguration.cpp
../exception/Errnum.cpp
../exception/NotAnOwner.cpp
../exception/TimeOut.cpp
../exception/OutOfMemory.cpp
../BaseObject.cpp
...
...
tapeserver/castor/utils/SmartArrayPtr.hpp
View file @
d606f24a
...
...
@@ -23,7 +23,7 @@
#pragma once
#include "c
astor
/exception/NotAnOwner.hpp"
#include "c
ommon
/exception/NotAnOwner.hpp"
#include <errno.h>
#include <stdio.h>
...
...
@@ -119,7 +119,7 @@ public:
T
*
release
()
{
// If this smart pointer does not own a pointer
if
(
NULL
==
m_arrayPtr
)
{
ca
stor
::
exception
::
NotAnOwner
ex
;
c
t
a
::
exception
::
NotAnOwner
ex
;
ex
.
getMessage
()
<<
"Smart pointer does not own a pointer"
;
throw
(
ex
);
}
...
...
tapeserver/castor/utils/SmartArrayPtrTest.cpp
View file @
d606f24a
...
...
@@ -77,7 +77,7 @@ TEST_F(castor_utils_SmartArrayPtrTest, assignment) {
TEST_F
(
castor_utils_SmartArrayPtrTest
,
releaseNull
)
{
castor
::
utils
::
SmartArrayPtr
<
char
>
smartPtr
;
ASSERT_THROW
(
smartPtr
.
release
(),
ca
stor
::
exception
::
NotAnOwner
);
ASSERT_THROW
(
smartPtr
.
release
(),
c
t
a
::
exception
::
NotAnOwner
);
}
TEST_F
(
castor_utils_SmartArrayPtrTest
,
subscriptRead
)
{
...
...
tapeserver/castor/utils/SmartFILEPtr.cpp
View file @
d606f24a
...
...
@@ -87,7 +87,7 @@ FILE *castor::utils::SmartFILEPtr::get() const throw() {
FILE
*
castor
::
utils
::
SmartFILEPtr
::
release
()
{
// If this smart pointer does not own a pointer
if
(
NULL
==
m_file
)
{
ca
stor
::
exception
::
NotAnOwner
ex
;
c
t
a
::
exception
::
NotAnOwner
ex
;
ex
.
getMessage
()
<<
"Smart pointer does not own a FILE pointer"
;
throw
ex
;
}
...
...
tapeserver/castor/utils/SmartFILEPtr.hpp
View file @
d606f24a
...
...
@@ -23,7 +23,7 @@
#pragma once
#include "c
astor
/exception/NotAnOwner.hpp"
#include "c
ommon
/exception/NotAnOwner.hpp"
#include <stdio.h>
...
...
tapeserver/castor/utils/SmartFd.cpp
View file @
d606f24a
...
...
@@ -104,7 +104,7 @@ int castor::utils::SmartFd::get() const throw() {
int
castor
::
utils
::
SmartFd
::
release
()
{
// If this SmartFd does not own a file descriptor
if
(
m_fd
<
0
)
{
ca
stor
::
exception
::
NotAnOwner
ex
;
c
t
a
::
exception
::
NotAnOwner
ex
;
ex
.
getMessage
()
<<
"Smart file-descriptor does not own a file-descriptor"
;
throw
ex
;
}
...
...
tapeserver/castor/utils/SmartFd.hpp
View file @
d606f24a
...
...
@@ -23,7 +23,7 @@
#pragma once
#include "c
astor
/exception/NotAnOwner.hpp"
#include "c
ommon
/exception/NotAnOwner.hpp"
namespace
castor
{
namespace
utils
{
...
...
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