summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/VersionBuildError.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-04-23 02:31:13 +0200
committerPetr Mrázek <peterix@gmail.com>2017-04-23 02:34:16 +0200
commit3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba (patch)
tree298901b19ddf1bd645690bfe1d918d0c20e69780 /api/logic/minecraft/VersionBuildError.h
parentb414bbe395d8056365368fde823535fdde398e4c (diff)
downloadMultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar
MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar.gz
MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar.lz
MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar.xz
MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.zip
GH-1856 Make MultiMC fail hard when things are missing
Things like: * jar mods * valid version files
Diffstat (limited to 'api/logic/minecraft/VersionBuildError.h')
-rw-r--r--api/logic/minecraft/VersionBuildError.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/api/logic/minecraft/VersionBuildError.h b/api/logic/minecraft/VersionBuildError.h
deleted file mode 100644
index f362c405..00000000
--- a/api/logic/minecraft/VersionBuildError.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "Exception.h"
-
-class VersionBuildError : public Exception
-{
-public:
- explicit VersionBuildError(QString cause) : Exception(cause) {}
- virtual ~VersionBuildError() noexcept
- {
- }
-};
-
-/**
- * the base version file was meant for a newer version of the vanilla launcher than we support
- */
-class LauncherVersionError : public VersionBuildError
-{
-public:
- LauncherVersionError(int actual, int supported)
- : VersionBuildError(QObject::tr(
- "The base version file of this instance was meant for a newer (%1) "
- "version of the vanilla launcher than this version of MultiMC supports (%2).")
- .arg(actual)
- .arg(supported)) {};
- virtual ~LauncherVersionError() noexcept
- {
- }
-};
-
-/**
- * files required for the version are not (yet?) present
- */
-class VersionIncomplete : public VersionBuildError
-{
-public:
- VersionIncomplete(QString missingPatch)
- : VersionBuildError(QObject::tr("Version is incomplete: missing %1.")
- .arg(missingPatch)) {};
- virtual ~VersionIncomplete() noexcept
- {
- }
-};