Reference documentation for deal.II version 9.5.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
exceptions.h File Reference
#include <deal.II/base/config.h>
#include <Kokkos_Core.hpp>
#include <exception>
#include <ostream>
#include <string>
#include <type_traits>
#include <cusolverSp.h>
#include <cusparse.h>

Go to the source code of this file.

Classes

class  ExceptionBase
 
class  StandardExceptions::ExcMPI
 
struct  internal::argument_type< T(U)>
 

Namespaces

namespace  StandardExceptions
 
namespace  deal_II_exceptions
 
namespace  deal_II_exceptions::internals
 
namespace  internal
 

Macros

#define DeclException0(Exception0)
 
#define DeclExceptionMsg(Exception, defaulttext)
 
#define DeclException1(Exception1, type1, outsequence)
 
#define DeclException2(Exception2, type1, type2, outsequence)
 
#define DeclException3(Exception3, type1, type2, type3, outsequence)
 
#define DeclException4(Exception4, type1, type2, type3, type4, outsequence)
 
#define DeclException5( Exception5, type1, type2, type3, type4, type5, outsequence)
 
#define Assert(cond, exc)
 
#define AssertNothrow(cond, exc)
 
#define AssertThrow(cond, exc)
 
#define AssertDimension(dim1, dim2)
 
#define AssertVectorVectorDimension(VEC, DIM1, DIM2)
 
#define AssertIndexRange(index, range)
 
#define AssertIsFinite(number)
 
#define AssertIsNotUsed(obj)   Assert((obj)->used() == false, ExcInternalError())
 
#define AssertThrowMPI(error_code)    AssertThrow(error_code == MPI_SUCCESS, ::ExcMPI(error_code))
 
#define AssertCuda(error_code)
 
#define AssertNothrowCuda(error_code)
 
#define AssertCudaKernel()
 
#define AssertCusparse(error_code)
 
#define AssertNothrowCusparse(error_code)
 
#define AssertCusolver(error_code)
 

Typedefs

template<typename F >
using internal::argument_type_t = typename argument_type< F >::type
 

Enumerations

enum class  deal_II_exceptions::internals::ExceptionHandling { deal_II_exceptions::internals::abort_or_throw_on_exception , deal_II_exceptions::internals::throw_on_exception }
 

Functions

static ::ExceptionBase & StandardExceptions::ExcDivideByZero ()
 
static ::ExceptionBase & StandardExceptions::ExcNumberNotFinite (std::complex< double > arg1)
 
static ::ExceptionBase & StandardExceptions::ExcOutOfMemory (std::size_t arg1)
 
static ::ExceptionBase & StandardExceptions::ExcMemoryLeak (int arg1)
 
static ::ExceptionBase & StandardExceptions::ExcIO ()
 
static ::ExceptionBase & StandardExceptions::ExcFileNotOpen (std::string arg1)
 
static ::ExceptionBase & StandardExceptions::ExcNotImplemented ()
 
static ::ExceptionBase & StandardExceptions::ExcInternalError ()
 
static ::ExceptionBase & StandardExceptions::ExcPureFunctionCalled ()
 
static ::ExceptionBase & StandardExceptions::ExcFunctionNotProvided (std::string arg1)
 
static ::ExceptionBase & StandardExceptions::ExcFunctionNonzeroReturn (std::string arg1, int arg2)
 
static ::ExceptionBase & StandardExceptions::ExcNotInitialized ()
 
static ::ExceptionBase & StandardExceptions::ExcInvalidState ()
 
static ::ExceptionBase & StandardExceptions::ExcImpossibleInDim (int arg1)
 
static ::ExceptionBase & StandardExceptions::ExcImpossibleInDimSpacedim (int arg1, int arg2)
 
static ::ExceptionBase & StandardExceptions::ExcZero ()
 
static ::ExceptionBase & StandardExceptions::ExcEmptyObject ()
 
static ::ExceptionBase & StandardExceptions::ExcDimensionMismatch (std::size_t arg1, std::size_t arg2)
 
static ::ExceptionBase & StandardExceptions::ExcDimensionMismatch2 (std::size_t arg1, std::size_t arg2, std::size_t arg3)
 
static ::ExceptionBase & StandardExceptions::ExcIndexRange (std::size_t arg1, std::size_t arg2, std::size_t arg3)
 
template<typename T >
static ::ExceptionBase & StandardExceptions::ExcIndexRangeType (T arg1, T arg2, T arg3)
 
static ::ExceptionBase & StandardExceptions::ExcLowerRange (int arg1, int arg2)
 
template<typename T >
static ::ExceptionBase & StandardExceptions::ExcLowerRangeType (T arg1, T arg2)
 
static ::ExceptionBase & StandardExceptions::ExcNotMultiple (int arg1, int arg2)
 
static ::ExceptionBase & StandardExceptions::ExcInvalidIterator ()
 
static ::ExceptionBase & StandardExceptions::ExcIteratorPastEnd ()
 
static ::ExceptionBase & StandardExceptions::ExcMessage (std::string arg1)
 
static ::ExceptionBase & StandardExceptions::ExcGhostsPresent ()
 
static ::ExceptionBase & StandardExceptions::ExcGridHasInvalidCell (int arg1)
 
static ::ExceptionBase & StandardExceptions::ExcScalarAssignmentOnlyForZeroValue ()
 
static ::ExceptionBase & StandardExceptions::ExcNeedsLAPACK ()
 
static ::ExceptionBase & StandardExceptions::ExcNeedsHDF5 ()
 
static ::ExceptionBase & StandardExceptions::ExcNeedsMPI ()
 
static ::ExceptionBase & StandardExceptions::ExcNeedsFunctionparser ()
 
static ::ExceptionBase & StandardExceptions::ExcNeedsAssimp ()
 
static ::ExceptionBase & StandardExceptions::ExcCudaError (const char *arg1)
 
static ::ExceptionBase & StandardExceptions::ExcCusparseError (std::string arg1)
 
static ::ExceptionBase & StandardExceptions::ExcNeedsExodusII ()
 
static ::ExceptionBase & StandardExceptions::ExcNeedsCGAL ()
 
static ::ExceptionBase & StandardExceptions::RecoverableUserCallbackError ()
 
void deal_II_exceptions::set_additional_assert_output (const char *const p)
 
void deal_II_exceptions::suppress_stacktrace_in_exceptions ()
 
void deal_II_exceptions::disable_abort_on_exception ()
 
void deal_II_exceptions::enable_abort_on_exception ()
 
void deal_II_exceptions::internals::abort (const ExceptionBase &exc) noexcept
 
template<class ExceptionType >
void deal_II_exceptions::internals::issue_error_noreturn (ExceptionHandling handling, const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionType e)
 
void deal_II_exceptions::internals::do_issue_error_nothrow (const ExceptionBase &e) noexcept
 
template<class ExceptionType >
void deal_II_exceptions::internals::issue_error_nothrow (const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionType e) noexcept
 
std::string deal_II_exceptions::internals::get_cusparse_error_string (const cusparseStatus_t error_code)
 
std::string deal_II_exceptions::internals::get_cusolver_error_string (const cusolverStatus_t error_code)
 
template<typename T , typename U >
constexpr bool deal_II_exceptions::internals::compare_for_equality (const T &t, const U &u)
 
template<typename T , typename U >
constexpr bool deal_II_exceptions::internals::compare_less_than (const T &t, const U &u)
 

Variables

bool deal_II_exceptions::internals::allow_abort_on_exception = true
 

Macro Definition Documentation

◆ AssertIsNotUsed

#define AssertIsNotUsed (   obj)    Assert((obj)->used() == false, ExcInternalError())

Assert that a geometric object is not used. This assertion is used when constructing triangulations and should normally not be used inside user codes.

Definition at line 1891 of file exceptions.h.