1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Remove custom base Exception class

This commit is contained in:
Ted John
2018-01-02 19:23:22 +00:00
parent 61dfb3dac7
commit 02c58a6c5a
41 changed files with 143 additions and 198 deletions

View File

@@ -17,7 +17,6 @@
#include <memory>
#include "../common.h"
#include "../core/Console.hpp"
#include "../core/Exception.hpp"
#include "../core/Guard.hpp"
#include "../core/Path.hpp"
#include "../FileClassifier.h"
@@ -112,9 +111,9 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator * enumerat
importer->Load(sourcePath);
importer->Import();
}
catch (const Exception &ex)
catch (const std::exception &ex)
{
Console::Error::WriteLine(ex.GetMessage());
Console::Error::WriteLine(ex.what());
return EXITCODE_FAIL;
}
@@ -143,9 +142,9 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator * enumerat
exporter->SaveGame(destinationPath);
}
}
catch (const Exception &ex)
catch (const std::exception &ex)
{
Console::Error::WriteLine(ex.GetMessage());
Console::Error::WriteLine(ex.what());
return EXITCODE_FAIL;
}