NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
Error for handling two containers of incompatible lengths. More...
#include <exceptions.hpp>
Public Member Functions | |
DimensionMismatch (const std::string &file, int line, const std::string &func, size_t lengthA, size_t lengthB, const std::string &clarification) | |
![]() | |
Error (const std::string &file, int line, const std::string &what) | |
virtual const char * | what () const noexcept override |
Error for handling two containers of incompatible lengths.
DimensionMismatch is thrown if an operation is being applied to containers of incompatible size.
Definition at line 58 of file exceptions.hpp.
|
inline |
Initializes a dimension mismatch error.
file | The name of the offending source file |
line | The source code line number where the error occurred |
func | The function name where the error occurred |
length_a | The size of the first container |
length_b | The size of the second container |
clarification | An additional message describing the error further |
Definition at line 72 of file exceptions.hpp.