libmesh解析
本工作只是尝试解析原libmesh的代码,供学习使用
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 
Public 成员函数 | Public 属性 | 所有成员列表
libMesh::SolverException类 参考

A class representing an exception during a solve. 更多...

#include <libmesh_exceptions.h>

类 libMesh::SolverException 继承关系图:
[图例]

Public 成员函数

 SolverException (int error_code_in)
 
virtual ~SolverException ()=default
 Virtual destructor, gotta have one of those. 更多...
 
virtual const char * what () const noexceptoverride
 Override the what() function to provide a generic error message. 更多...
 

Public 属性

int error_code
 The error code generated by the solver. 更多...
 
std::string what_message
 string which holds the message built in the constructor. 更多...
 

详细描述

A class representing an exception during a solve.

在文件 libmesh_exceptions.h105 行定义.

构造及析构函数说明

libMesh::SolverException::SolverException ( int  error_code_in)
inline

在文件 libmesh_exceptions.h108 行定义.

参考 error_code , 以及 what_message.

108  :
109  std::exception(),
110  error_code(error_code_in)
111  {
112  std::ostringstream oss;
113  oss << "Error code " << error_code << " during solve." << std::endl;
114  what_message = oss.str();
115  }
int error_code
The error code generated by the solver.
std::string what_message
string which holds the message built in the constructor.
virtual libMesh::SolverException::~SolverException ( )
virtualdefault

Virtual destructor, gotta have one of those.

成员函数说明

virtual const char* libMesh::SolverException::what ( ) const
inlineoverridevirtualnoexcept

Override the what() function to provide a generic error message.

在文件 libmesh_exceptions.h125 行定义.

参考 what_message.

126  {
127  // std::string::c_str() is noexcept in C++11, so it's safe to call
128  // in what() because it can't throw.
129  return what_message.c_str();
130  }
std::string what_message
string which holds the message built in the constructor.

类成员变量说明

int libMesh::SolverException::error_code

The error code generated by the solver.

在文件 libmesh_exceptions.h135 行定义.

参考自 libMesh::PetscSolverException::PetscSolverException() , 以及 SolverException().

std::string libMesh::SolverException::what_message

string which holds the message built in the constructor.

在文件 libmesh_exceptions.h140 行定义.

参考自 libMesh::PetscSolverException::PetscSolverException(), SolverException() , 以及 what().


该类的文档由以下文件生成: