Flow123d  master-f44eb46
Functions
exc_common.hh File Reference


More...

#include <system/exceptions.hh>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 TYPEDEF_ERR_INFO (EI_Message, std::string)
 
 DECLARE_EXCEPTION (ExcMessage,<< EI_Message::val)
 
 TYPEDEF_ERR_INFO (EI_ErrCode, int)
 
 DECLARE_EXCEPTION (ExcChkErr,<< "["<< EI_ErrCode::val<< "] ")
 
 DECLARE_EXCEPTION (ExcChkErrAssert,<< "["<< EI_ErrCode::val<< "] ")
 

Detailed Description


 * Copyright (C) 2015 Technical University of Liberec. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Common exceptions.

Definition in file exc_common.hh.

Function Documentation

◆ DECLARE_EXCEPTION() [1/3]

DECLARE_EXCEPTION ( ExcChkErr  ,
<< " "  ["<< EI_ErrCode::val<< "] 
)

◆ DECLARE_EXCEPTION() [2/3]

DECLARE_EXCEPTION ( ExcChkErrAssert  ,
<< " "  ["<< EI_ErrCode::val<< "] 
)

◆ DECLARE_EXCEPTION() [3/3]

DECLARE_EXCEPTION ( ExcMessage  ,
<< EI_Message::val   
)

◆ TYPEDEF_ERR_INFO() [1/2]

TYPEDEF_ERR_INFO ( EI_ErrCode  ,
int   
)

Test of ierr return codes for MPI and PETSc

◆ TYPEDEF_ERR_INFO() [2/2]

TYPEDEF_ERR_INFO ( EI_Message  ,
std::string   
)

General exception with message. Usage: THROW( ExcMessage() << EI_Message("Some message.") )