From fd0853d2623dd278b08288331ed42e3be59252fb Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:00:17 +0200 Subject: 2.2 --- shared/fileError.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 shared/fileError.h (limited to 'shared/fileError.h') diff --git a/shared/fileError.h b/shared/fileError.h new file mode 100644 index 00000000..f5c6bdbd --- /dev/null +++ b/shared/fileError.h @@ -0,0 +1,25 @@ +#ifndef FILEERROR_H_INCLUDED +#define FILEERROR_H_INCLUDED + +#include + + +namespace FreeFileSync +{ + class FileError //Exception class used to notify file/directory copy/delete errors + { + public: + FileError(const wxString& message) : + errorMessage(message) {} + + const wxString& show() const + { + return errorMessage; + } + + private: + wxString errorMessage; + }; +} + +#endif // FILEERROR_H_INCLUDED -- cgit