Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
LoadingError.hpp
1/*
2** Copyright 2007-2023 RTE
3** Authors: Antares_Simulator Team
4**
5** This file is part of Antares_Simulator.
6**
7** Antares_Simulator is free software: you can redistribute it and/or modify
8** it under the terms of the Mozilla Public Licence 2.0 as published by
9** the Mozilla Foundation, either version 2 of the License, or
10** (at your option) any later version.
11**
12** There are special exceptions to the terms and conditions of the
13** license as they are applied to this software. View the full text of
14** the exceptions in file COPYING.txt in the directory of this software
15** distribution
16**
17** Antares_Simulator is distributed in the hope that it will be useful,
18** but WITHOUT ANY WARRANTY; without even the implied warranty of
19** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20** Mozilla Public Licence 2.0 for more details.
21**
22** You should have received a copy of the Mozilla Public Licence 2.0
23** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
24**
25** SPDX-License-Identifier: MPL-2.0
26*/
27
28#pragma once
29
30#include <list>
31#include <map>
32#include <stdexcept>
33
34#include <yuni/yuni.h>
35#include <yuni/string.h>
36
37#include "antares/study/fwd.h"
38
39namespace Antares
40{
41namespace Error
42{
43class LoadingError: public std::runtime_error
44{
45public:
46 using std::runtime_error::runtime_error;
47};
48
50{
51public:
52 explicit StudyFolderDoesNotExist(const Yuni::String& folder);
53};
54
56{
57public:
59};
60
61class NoAreas: public LoadingError
62{
63public:
64 NoAreas();
65};
66
68{
69public:
71};
72
78
80{
81public:
82 explicit WritingPID(const Yuni::String& file);
83};
84
90
96
102
108
110{
111public:
113};
114
116{
117public:
119};
120
122{
123public:
125};
126
128{
129public:
130 explicit InvalidSolver(const std::string& solver, const std::string& availableSolverList);
131};
132
134{
135public:
136 explicit InvalidSolverSpecificParameters(const std::string& solver,
137 const std::string& specificParameters);
138};
139
141{
142public:
143 explicit InvalidStudy(const std::string& study);
144};
145
147{
148public:
150};
151
153{
154public:
155 InvalidVersion(const std::string& version, const std::string& latest);
156};
157
159{
160public:
161 explicit IncompatibleDailyOptHeuristicForArea(const Antares::Data::AreaName& name);
162};
163
165{
166public:
167 explicit InvalidParametersForThermalClusters(const std::map<int, Yuni::String>& clusterNames);
168
169private:
170 std::string buildMessage(const std::map<int, Yuni::String>& clusterNames) const;
171};
172
174{
175public:
176 explicit CommandLineArguments(uint errors);
177};
178
184
186{
187public:
189};
190
192{
193public:
195};
196
198{
199public:
200 explicit IncompatibleOutputOptions(const std::string& text);
201};
202
204{
205public:
207};
208
214
215} // namespace Error
216} // namespace Antares
Definition LoadingError.hpp:174
Definition LoadingError.hpp:204
Definition LoadingError.hpp:210
Definition LoadingError.hpp:192
Definition LoadingError.hpp:98
Definition LoadingError.hpp:110
Definition LoadingError.hpp:198
Definition LoadingError.hpp:86
Definition LoadingError.hpp:68
Definition LoadingError.hpp:116
Definition LoadingError.hpp:122
Definition LoadingError.hpp:128
Definition LoadingError.hpp:141
Definition LoadingError.hpp:153
Definition LoadingError.hpp:44
Definition LoadingError.hpp:186
Definition LoadingError.hpp:62
Definition LoadingError.hpp:147
Definition LoadingError.hpp:56
Definition LoadingError.hpp:74
Definition LoadingError.hpp:50
Definition LoadingError.hpp:80