20 #ifndef LIBMESH_LIBMESH_EXCEPTIONS_H 21 #define LIBMESH_LIBMESH_EXCEPTIONS_H 25 #ifdef LIBMESH_ENABLE_EXCEPTIONS 30 #define libmesh_noexcept noexcept 68 FileError(
const std::string & filename) :
std::runtime_error(
"Error accessing file: " + filename ) {}
114 std::ostringstream oss;
115 oss <<
"Error code " <<
error_code <<
" during solve." << std::endl;
127 virtual const char *
what() const noexcept
147 #define LIBMESH_THROW(e) do { throw e; } while (0) 148 #define libmesh_try try 149 #define libmesh_catch(e) catch(e) 153 #define LIBMESH_THROW(e) do { std::abort(); } while (0) 155 #define libmesh_catch(e) if (0) 157 #endif // LIBMESH_ENABLE_EXCEPTIONS 159 #endif // LIBMESH_LIBMESH_EXCEPTIONS_H
SolverException(int error_code_in)
FileError(const std::string &filename)
LogicError(const std::string &msg)
virtual const char * what() const noexcept
virtual ~SolverException() noexcept