API
4.2
For C++ developers
|
This class helps a user cause an exception within the code. More...
Public Member Functions | |
FileDeletionThrower () | |
FileDeletionThrower (std::string filepath) | |
~FileDeletionThrower () | |
void | throwIfDeleted () const |
This class helps a user cause an exception within the code.
The constructor writes a file, and the destructor deletes the file. The programmer can call throwIfDeleted() to throw the FileDeletionThrowerException exception if the file is deleted (by a user) before the object is destructed. If the file could not be written by the constructor, then throwIfDeleted() does not throw an exception.
|
inline |
|
inline |
|
inline |
|
inline |