Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24401 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
1 parent
0000343
commit 713904d
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
46 changes: 23 additions & 23 deletions
46
SimulationRuntime/cpp/Include/Core/Utils/Modelica/ModelicaSimulationError.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
#pragma once | ||
|
||
//Enum for error types that can occur | ||
enum SIMULATION_ERROR { | ||
SOLVER, //all errors occur in solver (Euler,CVode) | ||
ALGLOOP_SOLVER, //all errors occur in non-,lin-solver (Kinsol,Newton,Hybrj) | ||
MODEL_EQ_SYSTEM, //all errors occur in model system class during simulation | ||
ALGLOOP_EQ_SYSTEM,//all errors occur in algloop system class during simulation | ||
MODEL_FACTORY, //all errors occur model system factory classes | ||
SIMMANAGER,//all errors occur in simulation manager | ||
EVENT_HANDLING,//all errors occur during event handling | ||
TIME_EVENTS, //all errors occur during handling time events | ||
DATASTORAGE , //all errors occur during write data (TextfileWriter,MatfileWriter,BufferReaderWriter | ||
UTILITY,//all errors occur in utility functions | ||
MODEL_ARRAY_FUNCTION,//all errors occur in array functions | ||
MATH_FUNCTION //all errors occur in math functions | ||
}; | ||
|
||
|
||
//typedefs for error information | ||
typedef boost::error_info<struct tag_error_code,SIMULATION_ERROR> error_id; | ||
typedef boost::error_info<struct tag_error_message,string> error_message; | ||
//Exception class for all exceptions that can occur | ||
#pragma once | ||
|
||
//Enum for error types that can occur | ||
enum SIMULATION_ERROR { | ||
SOLVER, //all errors occur in solver (Euler,CVode) | ||
ALGLOOP_SOLVER, //all errors occur in non-,lin-solver (Kinsol,Newton,Hybrj) | ||
MODEL_EQ_SYSTEM, //all errors occur in model system class during simulation | ||
ALGLOOP_EQ_SYSTEM,//all errors occur in algloop system class during simulation | ||
MODEL_FACTORY, //all errors occur model system factory classes | ||
SIMMANAGER,//all errors occur in simulation manager | ||
EVENT_HANDLING,//all errors occur during event handling | ||
TIME_EVENTS, //all errors occur during handling time events | ||
DATASTORAGE , //all errors occur during write data (TextfileWriter,MatfileWriter,BufferReaderWriter | ||
UTILITY,//all errors occur in utility functions | ||
MODEL_ARRAY_FUNCTION,//all errors occur in array functions | ||
MATH_FUNCTION //all errors occur in math functions | ||
}; | ||
|
||
|
||
//typedefs for error information | ||
typedef boost::error_info<struct tag_error_code,SIMULATION_ERROR> error_id; | ||
typedef boost::error_info<struct tag_error_message,string> error_message; | ||
//Exception class for all exceptions that can occur | ||
struct ModelicaSimulationError: virtual boost::exception, virtual std::exception { }; |