Flow123d  JS_before_hm-62-ge56f9d5
Functions
exc_common.hh File Reference
#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)
 
 TYPEDEF_ERR_INFO (EI_MPI_Rank, int)
 
 DECLARE_EXCEPTION (ExcAssertMsg,<< "["<< EI_MPI_Rank::val<< "] "<< "Violated Assert! "<< EI_Message::val)
 
 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 ( ExcAssertMsg  ,
<< " "<< "Violated Assert! "<< EI_Message::val  ["<< EI_MPI_Rank::val<< "] 
)
DECLARE_EXCEPTION ( ExcMessage  ,
<< EI_Message::val   
)

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

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

Assert exception with an string message.

TYPEDEF_ERR_INFO ( EI_MPI_Rank  ,
int   
)
TYPEDEF_ERR_INFO ( EI_ErrCode  ,
int   
)

Test of ierr return codes for MPI and PETSc