Skip to content

Commit

Permalink
[Janitor mode] Set auto-props
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24401 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 4, 2015
1 parent 0000343 commit 713904d
Showing 1 changed file with 23 additions and 23 deletions.
@@ -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 { };

0 comments on commit 713904d

Please sign in to comment.