Flow123d
JB-rel-int-test-ea53151
|
#include <system/exceptions.hh>
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<< "] ") | |
* 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 | ( | ExcChkErr | , |
<< " " | ["<< EI_ErrCode::val<< "] | ||
) |
DECLARE_EXCEPTION | ( | ExcChkErrAssert | , |
<< " " | ["<< EI_ErrCode::val<< "] | ||
) |
DECLARE_EXCEPTION | ( | ExcMessage | , |
<< EI_Message::val | |||
) |
TYPEDEF_ERR_INFO | ( | EI_ErrCode | , |
int | |||
) |
Test of ierr return codes for MPI and PETSc
TYPEDEF_ERR_INFO | ( | EI_Message | , |
std::string | |||
) |
General exception with message. Usage: THROW( ExcMessage() << EI_Message("Some message.") )