An exception class to be thrown when a container of incorrect geometry used in any class/method.
More...
#include <Exceptions.h>
|
| ExceptionGeom (const std::string &problem, const std::size_t &size1, const std::size_t &size2) |
|
| ExceptionGeom (const std::string &problem, const std::size_t &size1, const std::size_t &size2, const std::size_t &size3, const std::size_t &size4) |
|
An exception class to be thrown when a container of incorrect geometry used in any class/method.
Definition at line 47 of file Exceptions.h.
◆ ExceptionGeom() [1/2]
CppNoddy::ExceptionGeom::ExceptionGeom |
( |
const std::string & |
problem, |
|
|
const std::size_t & |
size1, |
|
|
const std::size_t & |
size2 |
|
) |
| |
|
inline |
Definition at line 49 of file Exceptions.h.
49 :
50 std::runtime_error(problem) {
51#ifdef WHAT
52 error_header();
53 std::cout << problem << "\n";
54 std::cout << " One dimensional container problem \n";
55 std::cout << " Container 1 size is " << size1 << "\n";
56 std::cout << " Container 2 size is " << size2 << "\n\n";
57#endif
58
59 }
◆ ExceptionGeom() [2/2]
CppNoddy::ExceptionGeom::ExceptionGeom |
( |
const std::string & |
problem, |
|
|
const std::size_t & |
size1, |
|
|
const std::size_t & |
size2, |
|
|
const std::size_t & |
size3, |
|
|
const std::size_t & |
size4 |
|
) |
| |
|
inline |
Definition at line 61 of file Exceptions.h.
62 :
63 std::runtime_error(problem) {
64#ifdef WHAT
65 error_header();
66 std::cout << problem << "\n";
67 std::cout << " Two dimensional container problem \n";
68 std::cout << " Container 1 size 1 is " << size1 << "\n";
69 std::cout << " Container 1 size 2 is " << size2 << "\n";
70 std::cout << " Container 2 size 1 is " << size3 << "\n";
71 std::cout << " Container 2 size 2 is " << size4 << "\n\n";
72#endif
73
74 }
The documentation for this class was generated from the following file: