Flow123d
release_3.0.0-695-g67d21c4
|
#include <system/exceptions.hh>
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<< "] ") | |
* 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.
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