NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoFOAM::DimensionMismatch Class Reference

Error for handling two containers of incompatible lengths. More...

#include <exceptions.hpp>

Inheritance diagram for NeoFOAM::DimensionMismatch:
NeoFOAM::Error

Public Member Functions

 DimensionMismatch (const std::string &file, int line, const std::string &func, size_t lengthA, size_t lengthB, const std::string &clarification)
 
- Public Member Functions inherited from NeoFOAM::Error
 Error (const std::string &file, int line, const std::string &what)
 
virtual const char * what () const noexcept override
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DimensionMismatch()

NeoFOAM::DimensionMismatch::DimensionMismatch ( const std::string &  file,
int  line,
const std::string &  func,
size_t  lengthA,
size_t  lengthB,
const std::string &  clarification 
)
inline

Initializes a dimension mismatch error.

Parameters
fileThe name of the offending source file
lineThe source code line number where the error occurred
funcThe function name where the error occurred
length_aThe size of the first container
length_bThe size of the second container
clarificationAn additional message describing the error further

Definition at line 72 of file exceptions.hpp.


The documentation for this class was generated from the following file: