Skip to content
Snippets Groups Projects
Commit c1ab7770 authored by Victor Kotlyar's avatar Victor Kotlyar
Browse files

Renamed castor::exception::EndOfFile to

cta::exception::EndOfFile
parent 9fae969a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment