OSDN Git Service

[Refactor] #2155 変愚蛮怒専用例外を定義した
authorHourier <66951241+Hourier@users.noreply.github.com>
Sun, 13 Feb 2022 14:11:18 +0000 (23:11 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Tue, 15 Feb 2022 09:40:35 +0000 (18:40 +0900)
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/system/angband-exceptions.h [new file with mode: 0644]

index c93b446..b902c83 100644 (file)
     <ClInclude Include="..\..\src\store\sell-order.h" />\r
     <ClInclude Include="..\..\src\store\service-checker.h" />\r
     <ClInclude Include="..\..\src\system\alloc-entries.h" />\r
+    <ClInclude Include="..\..\src\system\angband-exceptions.h" />\r
     <ClInclude Include="..\..\src\system\dungeon-data-definition.h" />\r
     <ClInclude Include="..\..\src\system\floor-type-definition.h" />\r
     <ClInclude Include="..\..\src\system\grid-type-definition.h" />\r
index f38c1b8..5aa35d1 100644 (file)
     <ClInclude Include="..\..\src\object-enchant\others\apply-magic-lite.h">\r
       <Filter>object-enchant\others</Filter>\r
     </ClInclude>\r
+    <ClInclude Include="..\..\src\system\angband-exceptions.h">\r
+      <Filter>system</Filter>\r
+    </ClInclude>\r
   </ItemGroup>\r
   <ItemGroup>\r
     <None Include="..\..\src\wall.bmp" />\r
index 4297e8c..34e1820 100644 (file)
@@ -875,6 +875,7 @@ hengband_SOURCES = \
        \
        system/alloc-entries.cpp system/alloc-entries.h \
        system/angband.h \
+       system/angband-exceptions.h \
        system/angband-version.cpp system/angband-version.h \
        system/artifact-type-definition.cpp system/artifact-type-definition.h \
        system/building-type-definition.cpp system/building-type-definition.h \
diff --git a/src/system/angband-exceptions.h b/src/system/angband-exceptions.h
new file mode 100644 (file)
index 0000000..c267bc8
--- /dev/null
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <stdexcept>
+
+class SaveDataNotSupportedException : public std::runtime_error {
+public:
+    SaveDataNotSupportedException(const char *message)
+        : std::runtime_error(message)
+    {
+    }
+};