Commit fcbd598e authored by Victor Kotlyar's avatar Victor Kotlyar
Browse files

Renamed castor::exception::EndOfFile to

cta::exception::EndOfFile
parent 1de172f8
......@@ -26,7 +26,7 @@
#include "common/exception/Exception.hpp"
#include <string>
namespace castor {
namespace cta {
namespace exception {
class EndOfFile: public cta::exception::Exception {
......
......@@ -24,7 +24,7 @@
#include "castor/tape/tapeserver/file/DiskFile.hpp"
#include "castor/tape/tapeserver/file/File.hpp"
#include "castor/exception/MemException.hpp"
#include "castor/exception/EndOfFile.hpp"
#include "common/exception/EndOfFile.hpp"
#pragma once
namespace castor {
......@@ -110,7 +110,7 @@ public:
try {
readSize = from.read(m_data + m_size, from.getBlockSize());
} catch (castor::tape::tapeFile::EndOfFile&) {
throw castor::exception::EndOfFile("In castor::tape::tapeserver::daemon::Payload::append: reached end of file");
throw cta::exception::EndOfFile("In castor::tape::tapeserver::daemon::Payload::append: reached end of file");
}
m_size += readSize;
return from.getBlockSize() <= remainingFreeSpace();
......
......@@ -122,7 +122,7 @@ public:
while (mb->m_payload.append(*rf)) {
tapeBlock++;
}
} catch (const castor::exception::EndOfFile&) {
} catch (const cta::exception::EndOfFile&) {
// append() signaled the end of the file.
stillReading = false;
}
......
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