From 6cd1d68baf219b5d3c742ba5fb3a9ee04e830999 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 5 Oct 2023 20:56:07 +0800 Subject: ... --- src/common/io/FileNotExistException.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/common/io/FileNotExistException.cpp (limited to 'src/common/io/FileNotExistException.cpp') diff --git a/src/common/io/FileNotExistException.cpp b/src/common/io/FileNotExistException.cpp new file mode 100644 index 00000000..a2e1fdb1 --- /dev/null +++ b/src/common/io/FileNotExistException.cpp @@ -0,0 +1,12 @@ +#include "cru/common/io/FileNotExistException.h" + +#include "cru/common/Exception.h" +#include "cru/common/Format.h" + +#include + +namespace cru::io { + FileNotExistException::FileNotExistException(String path): Exception(), path_(std::move(path)) { + SetMessage(Format(u"File {} does not exist.", path_)); + } +} -- cgit v1.2.3