wrench::FileNotFound

class FileNotFound : public wrench::FailureCause

A “file was not found” failure cause.

Public Functions

FileNotFound(std::shared_ptr<DataFile> file, std::shared_ptr<FileLocation> location)

Constructor.

Parameters
  • file – the file that could not be found

  • location – the location at which it could not be found (could be nullptr)

std::shared_ptr<DataFile> getFile()

Getter.

Returns

the file

std::shared_ptr<FileLocation> getLocation()

Getter.

Returns

the storage service

virtual std::string toString() override

Get the human-readable failure message.

Returns

the message