v0.8.4
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MoFEM::MoFEMException Struct Reference

Exception to catch. More...

#include <include/Common.hpp>

Inheritance diagram for MoFEM::MoFEMException:
[legend]
Collaboration diagram for MoFEM::MoFEMException:
[legend]

Public Member Functions

 MoFEMException (const MoFEMErrorCodes error_code)
 
 MoFEMException (const MoFEMErrorCodes error_code, const char error_message[])
 
const char * what () const throw ()
 

Public Attributes

const int errorCode
 
char errorMessage [255]
 

Protected Member Functions

 MoFEMException (const int error_code)
 

Detailed Description

Exception to catch.

Examples:
cell_forces.cpp, simple_interface.cpp, and unsaturated_transport.cpp.

Definition at line 26 of file Common.hpp.

Constructor & Destructor Documentation

◆ MoFEMException() [1/3]

MoFEM::MoFEMException::MoFEMException ( const MoFEMErrorCodes  error_code)

Definition at line 29 of file Common.hpp.

29  : errorCode(error_code) {
30  strcpy(errorMessage, "Huston we have a problem, something is wrong");
31  }
char errorMessage[255]
Definition: Common.hpp:28
const int errorCode
Definition: Common.hpp:27

◆ MoFEMException() [2/3]

MoFEM::MoFEMException::MoFEMException ( const MoFEMErrorCodes  error_code,
const char  error_message[] 
)

Definition at line 32 of file Common.hpp.

33  : errorCode(error_code) {
34  strcpy(errorMessage, error_message);
35  }
char errorMessage[255]
Definition: Common.hpp:28
const int errorCode
Definition: Common.hpp:27

◆ MoFEMException() [3/3]

MoFEM::MoFEMException::MoFEMException ( const int  error_code)
protected

Definition at line 38 of file Common.hpp.

38  : errorCode(error_code) {
39  strcpy(errorMessage, "Huston we have a problem, something is wrong");
40  }
char errorMessage[255]
Definition: Common.hpp:28
const int errorCode
Definition: Common.hpp:27

Member Function Documentation

◆ what()

const char* MoFEM::MoFEMException::what ( ) const
throw (
)

Definition at line 36 of file Common.hpp.

36 { return errorMessage; }
char errorMessage[255]
Definition: Common.hpp:28

Member Data Documentation

◆ errorCode

const int MoFEM::MoFEMException::errorCode
Examples:
cell_forces.cpp, simple_interface.cpp, and unsaturated_transport.cpp.

Definition at line 27 of file Common.hpp.

◆ errorMessage

char MoFEM::MoFEMException::errorMessage[255]
Examples:
cell_forces.cpp, simple_interface.cpp, and unsaturated_transport.cpp.

Definition at line 28 of file Common.hpp.


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