Dune Core Modules (unstable)
exceptions.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
312#define DUNE_THROW(E, ...) throw Dune::ExceptionStream(E()) << THROWSPEC(E) __VA_OPT__(<<) __VA_ARGS__
Class for extending a Dune::Exception with a stream interface.
Definition: exceptions.hh:199
Default exception if a function was called while the object is not in a valid state for that function...
Definition: exceptions.hh:373
Default exception if an error in the parallel communication of the program occurred.
Definition: exceptions.hh:379
friend ExceptionStream operator<<(ExceptionStream &&es, std::ostream &(*t)(std::ostream &))
Stream operator for r-value ExceptionStream and io manipulator.
Definition: exceptions.hh:268
static void registerHook(ExceptionHook *hook)
add a functor which is called before a Dune::Exception is emitted (see Dune::ExceptionHook)
Definition: exceptions.cc:22
friend ExceptionStream operator<<(ExceptionStream &&es, T t)
Stream operator for r-value ExceptionStream and integral values.
Definition: exceptions.hh:253
friend ExceptionStream & operator<<(ExceptionStream &es, T t)
Stream operator for l-value ExceptionStream and integral values.
Definition: exceptions.hh:243
void message(const std::string &msg)
store string in internal message buffer
Definition: exceptions.cc:32
friend ExceptionStream & operator<<(ExceptionStream &es, std::ostream &(*t)(std::ostream &))
Stream operator for l-value ExceptionStream and io manipulator.
Definition: exceptions.hh:260
const char * what() const noexcept override
output internal message buffer
Definition: exceptions.cc:37
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)