wrench::FileAlreadyBeingCopied

class wrench::FileAlreadyBeingCopied : public wrench::FailureCause

A “file is already being copied” failure cause.

Public Functions

FileAlreadyBeingCopied(std::shared_ptr<DataFile> file, std::shared_ptr<FileLocation> src, std::shared_ptr<FileLocation> dst)

Constructor.

Parameters
  • file – the file that is already being copied

  • src – the source location

  • dst – the destination location

std::shared_ptr<FileLocation> getDestinationLocation()

Getter.

Returns

the source location

std::shared_ptr<DataFile> getFile()

Getter.

Returns

the file

std::shared_ptr<FileLocation> getSourceLocation()

Getter.

Returns

the source location

virtual std::string toString() override

Get the human-readable failure message.

Returns

the message