aboutsummaryrefslogtreecommitdiff
path: root/src/common/io/FileNotExistException.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-10-05 20:56:07 +0800
committercrupest <crupest@outlook.com>2023-10-05 20:56:07 +0800
commit6cd1d68baf219b5d3c742ba5fb3a9ee04e830999 (patch)
tree523c97530f235139ef89f9137997ca4b70b32237 /src/common/io/FileNotExistException.cpp
parentb09a5c7cea5b4eb32b3318c97b046f018b297d8c (diff)
downloadcru-6cd1d68baf219b5d3c742ba5fb3a9ee04e830999.tar.gz
cru-6cd1d68baf219b5d3c742ba5fb3a9ee04e830999.tar.bz2
cru-6cd1d68baf219b5d3c742ba5fb3a9ee04e830999.zip
...
Diffstat (limited to 'src/common/io/FileNotExistException.cpp')
-rw-r--r--src/common/io/FileNotExistException.cpp12
1 files changed, 12 insertions, 0 deletions
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 <utility>
+
+namespace cru::io {
+ FileNotExistException::FileNotExistException(String path): Exception(), path_(std::move(path)) {
+ SetMessage(Format(u"File {} does not exist.", path_));
+ }
+}