22 #ifndef __HERMES_COMMON_EXCEPTIONS_H_
23 #define __HERMES_COMMON_EXCEPTIONS_H_
59 void print_msg()
const;
61 virtual const char * what()
const throw();
62 std::string info()
const;
64 const char * get_func_name()
const;
68 std::stringstream message;
70 char message_char[10000];
88 IOException(ReadWrite readWrite,
const char* filename);
89 IOException(ReadWrite readWrite, std::string filename);
92 IOException(
const IOException & e);
112 NullException(
unsigned int param_idx,
unsigned int item_idx);
114 unsigned int get_param_idx()
const;
116 unsigned int get_item_idx()
const;
120 unsigned int param_idx, item_idx;
139 LengthException(
unsigned int param_idx,
unsigned int wrong,
unsigned int right);
145 LengthException(
unsigned int fst_param_idx,
unsigned int snd_param_idx,
unsigned int first,
unsigned int second);
147 unsigned int get_first_param_idx()
const;
149 unsigned int get_second_param_idx()
const;
151 unsigned int get_first_length()
const;
153 unsigned int get_expected_length()
const;
157 unsigned int fst_param_idx, snd_param_idx, wrong, right;
187 ValueException(
const char * name,
double value,
double min,
double max);
191 double get_value()
const;
193 double get_allowed()
const;
197 double value, allowed;
General namespace for the Hermes library.
Exception interface Basically a std::exception, but with a constructor with string and with print_msg...
Parameter length parameter exception. Internal. Exception occurs when some parameter has wrong length...
Mesh failed to load. Thrown by Hermes2D::MeshReaderH2DXML, MeshReaderH2D.
IO exception. Internal. Exception occurs when something fails to be written to / read from the disk...
File containing platform compatibility layer, especially for Win / MSVC.
Null parameter exception. Internal. Exception occurs when some parameter is Null or empty and it shou...
Method is not overriden and should be.
File containing common definitions, and basic global enums etc. for HermesCommon. ...
Numeric value is out of allowed range.
Method is not overriden and should be.