16#ifndef dealii_exceptions_h
17#define dealii_exceptions_h
21#include <Kokkos_Core.hpp>
28#ifdef DEAL_II_WITH_CUDA
29# include <cusolverSp.h>
84 const
char *exc_name);
91 what() const noexcept override;
151#ifdef DEAL_II_HAVE_GLIBC_STACKTRACE
190# define DeclException0(Exception0) \
191 class Exception0 : public ::ExceptionBase \
214# define DeclExceptionMsg(Exception, defaulttext) \
215 class Exception : public ::ExceptionBase \
218 Exception(const std::string &msg = defaulttext) \
221 virtual ~Exception() noexcept \
224 print_info(std::ostream &out) const override \
226 out << " " << arg << std::endl; \
230 const std::string arg; \
250# define DeclException1(Exception1, type1, outsequence) \
251 class Exception1 : public ::ExceptionBase \
254 Exception1(type1 const &a1) \
257 virtual ~Exception1() noexcept \
260 print_info(std::ostream &out) const override \
262 out << " " outsequence << std::endl; \
287# define DeclException2(Exception2, type1, type2, outsequence) \
288 class Exception2 : public ::ExceptionBase \
291 Exception2(type1 const &a1, type2 const &a2) \
295 virtual ~Exception2() noexcept \
298 print_info(std::ostream &out) const override \
300 out << " " outsequence << std::endl; \
326# define DeclException3(Exception3, type1, type2, type3, outsequence) \
327 class Exception3 : public ::ExceptionBase \
330 Exception3(type1 const &a1, type2 const &a2, type3 const &a3) \
335 virtual ~Exception3() noexcept \
338 print_info(std::ostream &out) const override \
340 out << " " outsequence << std::endl; \
367# define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
368 class Exception4 : public ::ExceptionBase \
371 Exception4(type1 const &a1, \
380 virtual ~Exception4() noexcept \
383 print_info(std::ostream &out) const override \
385 out << " " outsequence << std::endl; \
413# define DeclException5( \
414 Exception5, type1, type2, type3, type4, type5, outsequence) \
415 class Exception5 : public ::ExceptionBase \
418 Exception5(type1 const &a1, \
429 virtual ~Exception5() noexcept \
432 print_info(std::ostream &out) const override \
434 out << " " outsequence << std::endl; \
465# define DeclException0(Exception0) \
467 static ::ExceptionBase &Exception0()
488# define DeclExceptionMsg(Exception, defaulttext) \
491 static ::ExceptionBase &Exception()
510# define DeclException1(Exception1, type1, outsequence) \
513 static ::ExceptionBase &Exception1(type1 arg1)
533# define DeclException2(Exception2, type1, type2, outsequence) \
536 static ::ExceptionBase &Exception2(type1 arg1, type2 arg2)
556# define DeclException3(Exception3, type1, type2, type3, outsequence) \
559 static ::ExceptionBase &Exception3(type1 arg1, type2 arg2, type3 arg3)
579# define DeclException4(Exception4, type1, type2, type3, type4, outsequence) \
582 static ::ExceptionBase &Exception4(type1 arg1, \
605# define DeclException5( \
606 Exception5, type1, type2, type3, type4, type5, outsequence) \
609 static ::ExceptionBase &Exception5( \
610 type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5)
637 "A piece of code is attempting a division by zero. This is "
638 "likely going to lead to results that make no sense.");
652 std::complex<double>,
653 <<
"In a significant number of places, deal.II checks that some intermediate "
654 <<
"value is a finite number (as opposed to plus or minus infinity, or "
655 <<
"NaN/Not a Number). In the current function, we encountered a number "
656 <<
"that is not finite (its value is " << arg1 <<
" and therefore "
657 <<
"violates the current assertion).\n\n"
658 <<
"This may be due to the fact that some operation in this function "
659 <<
"created such a value, or because one of the arguments you passed "
660 <<
"to the function already had this value from some previous "
661 <<
"operation. In the latter case, this function only triggered the "
662 <<
"error but may not actually be responsible for the computation of "
663 <<
"the number that is not finite.\n\n"
664 <<
"There are two common cases where this situation happens. First, your "
665 <<
"code (or something in deal.II) divides by zero in a place where this "
666 <<
"should not happen. Or, you are trying to solve a linear system "
667 <<
"with an unsuitable solver (such as an indefinite or non-symmetric "
668 <<
"linear system using a Conjugate Gradient solver); such attempts "
669 <<
"oftentimes yield an operation somewhere that tries to divide "
670 <<
"by zero or take the square root of a negative value.\n\n"
671 <<
"In any case, when trying to find the source of the error, "
672 <<
"recall that the location where you are getting this error is "
673 <<
"simply the first place in the program where there is a check "
674 <<
"that a number (e.g., an element of a solution vector) is in fact "
675 <<
"finite, but that the actual error that computed the number "
676 <<
"may have happened far earlier. To find this location, you "
677 <<
"may want to add checks for finiteness in places of your "
678 <<
"program visited before the place where this error is produced. "
679 <<
"One way to check for finiteness is to use the 'AssertIsFinite' "
687 "Your program tried to allocate some memory but this "
688 "allocation failed. Typically, this either means that "
689 "you simply do not have enough memory in your system, "
690 "or that you are (erroneously) trying to allocate "
691 "a chunk of memory that is simply beyond all reasonable "
692 "size, for example because the size of the object has "
693 "been computed incorrectly."
695 "In the current case, the request was for "
696 << arg1 <<
" bytes.");
704 <<
"Destroying memory handler while " << arg1
705 <<
" objects are still allocated.");
711 "An input/output error has occurred. There are a number of "
712 "reasons why this may be happening, both for reading and "
713 "writing operations."
715 "If this happens during an operation that tries to read "
716 "data: First, you may be "
717 "trying to read from a file that doesn't exist or that is "
718 "not readable given its file permissions. Second, deal.II "
719 "uses this error at times if it tries to "
720 "read information from a file but where the information "
721 "in the file does not correspond to the expected format. "
722 "An example would be a truncated file, or a mesh file "
723 "that contains not only sections that describe the "
724 "vertices and cells, but also sections for additional "
725 "data that deal.II does not understand."
727 "If this happens during an operation that tries to write "
728 "data: you may be trying to write to a file to which file "
729 "or directory permissions do not allow you to write. A "
730 "typical example is where you specify an output file in "
731 "a directory that does not exist.");
741 <<
"Could not open file " << arg1
744 "If this happens during an operation that tries to read "
746 "trying to read from a file that doesn't exist or that is "
747 "not readable given its file permissions."
749 "If this happens during an operation that tries to write "
750 "data: you may be trying to write to a file to which file "
751 "or directory permissions do not allow you to write. A "
752 "typical example is where you specify an output file in "
753 "a directory that does not exist.");
764 "You are trying to use functionality in deal.II that is "
765 "currently not implemented. In many cases, this indicates "
766 "that there simply didn't appear much of a need for it, or "
767 "that the author of the original code did not have the "
768 "time to implement a particular case. If you hit this "
769 "exception, it is therefore worth the time to look into "
770 "the code to find out whether you may be able to "
771 "implement the missing functionality. If you do, please "
772 "consider providing a patch to the deal.II development "
773 "sources (see the deal.II website on how to contribute).");
796 "This exception -- which is used in many places in the "
797 "library -- usually indicates that some condition which "
798 "the author of the code thought must be satisfied at a "
799 "certain point in an algorithm, is not fulfilled. An "
800 "example would be that the first part of an algorithm "
801 "sorts elements of an array in ascending order, and "
802 "a second part of the algorithm later encounters an "
803 "element that is not larger than the previous one."
805 "There is usually not very much you can do if you "
806 "encounter such an exception since it indicates an error "
807 "in deal.II, not in your own program. Try to come up with "
808 "the smallest possible program that still demonstrates "
809 "the error and contact the deal.II mailing lists with it "
820 "You (or a place in the library) are trying to call a "
821 "function that is declared as a virtual function in a "
822 "base class but that has not been overridden in your "
825 "This exception happens in cases where the base class "
826 "cannot provide a useful default implementation for "
827 "the virtual function, but where we also do not want "
828 "to mark the function as abstract (i.e., with '=0' at the end) "
829 "because the function is not essential to the class in many "
830 "contexts. In cases like this, the base class provides "
831 "a dummy implementation that makes the compiler happy, but "
832 "that then throws the current exception."
834 "A concrete example would be the 'Function' class. It declares "
835 "the existence of 'value()' and 'gradient()' member functions, "
836 "and both are marked as 'virtual'. Derived classes have to "
837 "override these functions for the values and gradients of a "
838 "particular function. On the other hand, not every function "
839 "has a gradient, and even for those that do, not every program "
840 "actually needs to evaluate it. Consequently, there is no "
841 "*requirement* that a derived class actually override the "
842 "'gradient()' function (as there would be had it been marked "
843 "as abstract). But, since the base class cannot know how to "
844 "compute the gradient, if a derived class does not override "
845 "the 'gradient()' function and it is called anyway, then the "
846 "default implementation in the base class will simply throw "
849 "The exception you see is what happens in cases such as the "
850 "one just illustrated. To fix the problem, you need to "
851 "investigate whether the function being called should indeed have "
852 "been called; if the answer is 'yes', then you need to "
853 "implement the missing override in your class.");
860 <<
"Please provide an implementation for the function \""
870 <<
"The function \"" << arg1 <<
"\" returned the nonzero value " << arg2
871 <<
", but the calling site expected the return value to be zero. "
872 "This error often happens when the function in question is a 'callback', "
873 "that is a user-provided function called from somewhere within deal.II "
874 "or within an external library such as PETSc, Trilinos, SUNDIALS, etc., "
875 "that expect these callbacks to indicate errors via nonzero return "
896 <<
"You are trying to execute functionality that is "
897 <<
"impossible in " << arg1
898 <<
"d or simply does not make any sense.");
910 <<
"You are trying to execute functionality that is "
911 <<
"impossible in dimensions <" << arg1 <<
',' << arg2
912 <<
"> or simply does not make any sense.");
919 "In a check in the code, deal.II encountered a zero in "
920 "a place where this does not make sense. See the condition "
921 "that was being checked and that is printed further up "
922 "in the error message to get more information on what "
923 "the erroneous zero corresponds to.");
930 "The object you are trying to access is empty but it makes "
931 "no sense to attempt the operation you are trying on an "
944 <<
"Two sizes or dimensions were supposed to be equal, "
945 <<
"but aren't. They are " << arg1 <<
" and " << arg2 <<
'.');
955 <<
"The size or dimension of one object, " << arg1
956 <<
" was supposed to be "
957 <<
"equal to one of two values, but isn't. The two possible "
958 <<
"values are " << arg2 <<
" and " << arg3 <<
'.');
977 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
980 " In the current case, this half-open range is in fact empty, "
981 "suggesting that you are accessing an element of an empty "
982 "collection such as a vector that has not been set to the "
1001 template <
typename T>
1007 <<
"Index " << arg1 <<
" is not in the half-open range [" << arg2 <<
','
1010 " In the current case, this half-open range is in fact empty, "
1011 "suggesting that you are accessing an element of an empty "
1012 "collection such as a vector that has not been set to the "
1022 <<
"Number " << arg1 <<
" must be larger than or equal "
1028 template <
typename T>
1032 <<
"Number " << arg1 <<
" must be larger than or equal "
1042 <<
"Division " << arg1 <<
" by " << arg2
1043 <<
" has remainder different from zero.");
1054 "You are trying to use an iterator, but the iterator is "
1055 "in an invalid state. This may indicate that the iterator "
1056 "object has not been initialized, or that it has been "
1057 "moved beyond the end of the range of valid elements.");
1064 "You are trying to use an iterator, but the iterator is "
1065 "pointing past the end of the range of valid elements. "
1066 "It is not valid to dereference the iterator in this "
1088 "You are trying an operation on a vector that is only "
1089 "allowed if the vector has no ghost elements, but the "
1090 "vector you are operating on does have ghost elements. "
1091 "Specifically, vectors with ghost elements are read-only "
1092 "and cannot appear in operations that write into these "
1095 "See the glossary entry on 'Ghosted vectors' for more "
1104 <<
"Something went wrong when making cell " << arg1
1105 <<
". Read the docs and the source code "
1106 <<
"for more information.");
1116 "You are trying an operation of the form 'vector = C', "
1117 "'matrix = C', or 'tensor = C' with a nonzero scalar value "
1118 "'C'. However, such assignments are only allowed if the "
1119 "C is zero, since the semantics for assigning any other "
1120 "value are not clear. For example: one could interpret "
1121 "assigning a matrix a value of 1 to mean the matrix has a "
1122 "norm of 1, the matrix is the identity matrix, or the "
1123 "matrix contains only 1s. Similar problems exist with "
1124 "vectors and tensors. Hence, to avoid this ambiguity, such "
1125 "assignments are not permitted.");
1132 "You are attempting to use functionality that is only available "
1133 "if deal.II was configured to use LAPACK, but cmake did not "
1134 "find a valid LAPACK library.");
1141 "You are attempting to use functionality that requires that deal.II is configured "
1142 "with HDF5 support. However, when you called 'cmake', HDF5 support "
1143 "was not detected.");
1150 "You are attempting to use functionality that is only available "
1151 "if deal.II was configured to use MPI.");
1158 "You are attempting to use functionality that is only available "
1159 "if deal.II was configured to use the function parser which "
1160 "relies on the muparser library, but cmake did not "
1161 "find a valid muparser library on your system and also did "
1162 "not choose the one that comes bundled with deal.II.");
1169 "You are attempting to use functionality that is only available "
1170 "if deal.II was configured to use Assimp, but cmake did not "
1171 "find a valid Assimp library.");
1173#ifdef DEAL_II_WITH_CUDA
1186 <<
"There was an error in a cuSPARSE function: " << arg1);
1195 "You are attempting to use functionality that is only available if deal.II "
1196 "was configured to use Trilinos' SEACAS library (which provides ExodusII), "
1197 "but cmake did not find a valid SEACAS library.");
1204 "You are attempting to use functionality that is only available "
1205 "if deal.II was configured to use CGAL, but cmake did not "
1206 "find a valid CGAL library.");
1208#ifdef DEAL_II_WITH_MPI
1236 print_info(std::ostream &out)
const override;
1244#ifdef DEAL_II_TRILINOS_WITH_SEACAS
1261 ExcExodusII(
const int error_code);
1267 print_info(std::ostream &out)
const override;
1272 const int error_code;
1282 "A user call-back function encountered a recoverable error, "
1283 "but the underlying library that called the call-back did not "
1284 "manage to recover from the error and aborted its operation."
1286 "See the glossary entry on user call-back functions for more "
1424 template <
class ExceptionType>
1429 const char * function,
1431 const char * exc_name,
1435 e.set_fields(file, line, function, cond, exc_name);
1441 if (::deal_II_exceptions::internals::
1456 throw ::StandardExceptions::ExcInternalError();
1474 template <
class ExceptionType>
1478 const char * function,
1480 const char * exc_name,
1481 ExceptionType e)
noexcept
1483 static_assert(std::is_base_of<ExceptionBase, ExceptionType>::value,
1484 "The provided exception must inherit from ExceptionBase.");
1486 e.set_fields(file, line, function, cond, exc_name);
1491#ifdef DEAL_II_WITH_CUDA
1540# if KOKKOS_VERSION >= 30600
1541# ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1542# define Assert(cond, exc) \
1544 KOKKOS_IF_ON_HOST(({ \
1545 if (__builtin_expect(!(cond), false)) \
1546 ::deal_II_exceptions::internals::issue_error_noreturn( \
1547 ::deal_II_exceptions::internals::ExceptionHandling:: \
1548 abort_or_throw_on_exception, \
1551 __PRETTY_FUNCTION__, \
1556 KOKKOS_IF_ON_DEVICE(({ \
1558 Kokkos::abort(#cond); \
1562# define Assert(cond, exc) \
1564 KOKKOS_IF_ON_HOST(({ \
1566 ::deal_II_exceptions::internals::issue_error_noreturn( \
1567 ::deal_II_exceptions::internals::ExceptionHandling:: \
1568 abort_or_throw_on_exception, \
1571 __PRETTY_FUNCTION__, \
1576 KOKKOS_IF_ON_DEVICE(({ \
1578 Kokkos::abort(#cond); \
1583# ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST
1584# ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1585# define Assert(cond, exc) \
1587 if (__builtin_expect(!(cond), false)) \
1588 ::deal_II_exceptions::internals::issue_error_noreturn( \
1589 ::deal_II_exceptions::internals::ExceptionHandling:: \
1590 abort_or_throw_on_exception, \
1593 __PRETTY_FUNCTION__, \
1599# define Assert(cond, exc) \
1602 ::deal_II_exceptions::internals::issue_error_noreturn( \
1603 ::deal_II_exceptions::internals::ExceptionHandling:: \
1604 abort_or_throw_on_exception, \
1607 __PRETTY_FUNCTION__, \
1614# define Assert(cond, exc) \
1617 Kokkos::abort(#cond); \
1622# define Assert(cond, exc) \
1655# ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1656# define AssertNothrow(cond, exc) \
1658 if (__builtin_expect(!(cond), false)) \
1659 ::deal_II_exceptions::internals::issue_error_nothrow( \
1660 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1663# define AssertNothrow(cond, exc) \
1666 ::deal_II_exceptions::internals::issue_error_nothrow( \
1667 __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \
1671# define AssertNothrow(cond, exc) \
1702#ifdef DEAL_II_HAVE_BUILTIN_EXPECT
1703# define AssertThrow(cond, exc) \
1705 if (__builtin_expect(!(cond), false)) \
1706 ::deal_II_exceptions::internals::issue_error_noreturn( \
1707 ::deal_II_exceptions::internals::ExceptionHandling:: \
1708 throw_on_exception, \
1711 __PRETTY_FUNCTION__, \
1717# define AssertThrow(cond, exc) \
1720 ::deal_II_exceptions::internals::issue_error_noreturn( \
1721 ::deal_II_exceptions::internals::ExceptionHandling:: \
1722 throw_on_exception, \
1725 __PRETTY_FUNCTION__, \
1742 template <
typename T,
typename U>
1746 using common_type = std::common_type_t<T, U>;
1747 return static_cast<common_type
>(t) ==
static_cast<common_type
>(u);
1756 template <
typename T,
typename U>
1760 using common_type = std::common_type_t<T, U>;
1761 return (
static_cast<common_type
>(t) <
static_cast<common_type
>(u));
1787#define AssertDimension(dim1, dim2) \
1788 Assert(::deal_II_exceptions::internals::compare_for_equality(dim1, \
1790 ::ExcDimensionMismatch((dim1), (dim2)))
1810#define AssertVectorVectorDimension(VEC, DIM1, DIM2) \
1811 AssertDimension(VEC.size(), DIM1); \
1812 for (const auto &subvector : VEC) \
1815 AssertDimension(subvector.size(), DIM2); \
1823 template <
typename F>
1826 template <
typename T,
typename U>
1832 template <
typename F>
1855#define AssertIndexRange(index, range) \
1856 Assert(::deal_II_exceptions::internals::compare_less_than(index, \
1858 ExcIndexRangeType<::internal::argument_type_t<void( \
1859 std::common_type_t<decltype(index), decltype(range)>)>>((index), \
1882#define AssertIsFinite(number) \
1883 Assert(::numbers::is_finite(number), \
1884 ::ExcNumberNotFinite(std::complex<double>(number)))
1891#define AssertIsNotUsed(obj) Assert((obj)->used() == false, ExcInternalError())
1893#ifdef DEAL_II_WITH_MPI
1914# define AssertThrowMPI(error_code) \
1915 AssertThrow(error_code == MPI_SUCCESS, ::ExcMPI(error_code))
1917# define AssertThrowMPI(error_code) \
1921#ifdef DEAL_II_WITH_CUDA
1940# define AssertCuda(error_code) \
1941 Assert(error_code == cudaSuccess, \
1942 ::ExcCudaError(cudaGetErrorString(error_code)))
1944# define AssertCuda(error_code) \
1946 (void)(error_code); \
1967# define AssertNothrowCuda(error_code) \
1968 AssertNothrow(error_code == cudaSuccess, \
1969 ::ExcCudaError(cudaGetErrorString(error_code)))
1971# define AssertNothrowCuda(error_code) \
1973 (void)(error_code); \
1995# define AssertCudaKernel() \
1997 cudaError_t local_error_code = cudaPeekAtLastError(); \
1998 AssertCuda(local_error_code); \
1999 local_error_code = cudaDeviceSynchronize(); \
2000 AssertCuda(local_error_code) \
2003# define AssertCudaKernel() \
2025# define AssertCusparse(error_code) \
2027 error_code == CUSPARSE_STATUS_SUCCESS, \
2029 deal_II_exceptions::internals::get_cusparse_error_string( \
2032# define AssertCusparse(error_code) \
2034 (void)(error_code); \
2055# define AssertNothrowCusparse(error_code) \
2057 error_code == CUSPARSE_STATUS_SUCCESS, \
2059 deal_II_exceptions::internals::get_cusparse_error_string( \
2062# define AssertNothrowCusparse(error_code) \
2064 (void)(error_code); \
2086# define AssertCusolver(error_code) \
2088 error_code == CUSOLVER_STATUS_SUCCESS, \
2090 deal_II_exceptions::internals::get_cusolver_error_string( \
2093# define AssertCusolver(error_code) \
2095 (void)(error_code); \
2101#ifdef DEAL_II_TRILINOS_WITH_SEACAS
2119# define AssertThrowExodusII(error_code) \
2120 AssertThrow(error_code == 0, \
2121 ::StandardExceptions::ExcExodusII(error_code));
void generate_message() const
void print_stack_trace(std::ostream &out) const
const char * get_exc_name() const
virtual ~ExceptionBase() noexcept override=default
void set_fields(const char *file, const int line, const char *function, const char *cond, const char *exc_name)
virtual void print_info(std::ostream &out) const
virtual const char * what() const noexcept override
void print_exc_data(std::ostream &out) const
void * raw_stacktrace[25]
virtual void print_info(std::ostream &out) const override
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcIndexRangeType(T arg1, T arg2, T arg3)
static ::ExceptionBase & ExcImpossibleInDimSpacedim(int arg1, int arg2)
#define DeclException0(Exception0)
static ::ExceptionBase & ExcInvalidIterator()
static ::ExceptionBase & ExcOutOfMemory(std::size_t arg1)
static ::ExceptionBase & ExcIO()
static ::ExceptionBase & ExcGhostsPresent()
static ::ExceptionBase & ExcFileNotOpen(std::string arg1)
static ::ExceptionBase & ExcZero()
static ::ExceptionBase & ExcNeedsAssimp()
static ::ExceptionBase & ExcNeedsFunctionparser()
static ::ExceptionBase & ExcNotMultiple(int arg1, int arg2)
static ::ExceptionBase & ExcNotImplemented()
static ::ExceptionBase & ExcNeedsMPI()
static ::ExceptionBase & ExcFunctionNotProvided(std::string arg1)
static ::ExceptionBase & ExcEmptyObject()
static ::ExceptionBase & ExcScalarAssignmentOnlyForZeroValue()
static ::ExceptionBase & ExcMemoryLeak(int arg1)
static ::ExceptionBase & ExcLowerRangeType(T arg1, T arg2)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcCusparseError(std::string arg1)
static ::ExceptionBase & ExcIteratorPastEnd()
static ::ExceptionBase & ExcNeedsExodusII()
static ::ExceptionBase & ExcDimensionMismatch2(std::size_t arg1, std::size_t arg2, std::size_t arg3)
static ::ExceptionBase & ExcCudaError(const char *arg1)
#define DeclException2(Exception2, type1, type2, outsequence)
static ::ExceptionBase & ExcLowerRange(int arg1, int arg2)
static ::ExceptionBase & ExcGridHasInvalidCell(int arg1)
static ::ExceptionBase & ExcNumberNotFinite(std::complex< double > arg1)
static ::ExceptionBase & ExcPureFunctionCalled()
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDivideByZero()
static ::ExceptionBase & ExcNeedsHDF5()
static ::ExceptionBase & ExcNeedsLAPACK()
#define DeclException3(Exception3, type1, type2, type3, outsequence)
static ::ExceptionBase & ExcNeedsCGAL()
static ::ExceptionBase & ExcIndexRange(std::size_t arg1, std::size_t arg2, std::size_t arg3)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcNotInitialized()
static ::ExceptionBase & ExcInvalidState()
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & RecoverableUserCallbackError()
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcFunctionNonzeroReturn(std::string arg1, int arg2)
std::string get_cusolver_error_string(const cusolverStatus_t error_code)
constexpr bool compare_less_than(const T &t, const U &u)
std::string get_cusparse_error_string(const cusparseStatus_t error_code)
constexpr bool compare_for_equality(const T &t, const U &u)
void issue_error_noreturn(ExceptionHandling handling, const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionType e)
@ abort_or_throw_on_exception
void abort(const ExceptionBase &exc) noexcept
void do_issue_error_nothrow(const ExceptionBase &e) noexcept
bool allow_abort_on_exception
void issue_error_nothrow(const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionType e) noexcept
void enable_abort_on_exception()
void disable_abort_on_exception()
void set_additional_assert_output(const char *const p)
void suppress_stacktrace_in_exceptions()
typename argument_type< F >::type argument_type_t
#define DEAL_II_HOST_DEVICE