PRISMS-PF Manual
Loading...
Searching...
No Matches
exceptions.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2025 PRISMS Center at the University of Michigan
2// SPDX-License-Identifier: GNU Lesser General Public Version 2.1
3
4#pragma once
5
6#include <deal.II/base/exceptions.h>
7
9
10#include <prismspf/config.h>
11
13
14// NOLINTBEGIN(readability-identifier-naming)
15
21#ifdef DEBUG
22# define AssertThrowDebug(cond, exc) AssertThrow(cond, exc);
23#else
24# define AssertThrowDebug(cond, exc)
25#endif
26
27// NOLINTEND(readability-identifier-naming)
28
29// NOLINTBEGIN
30
36 FeatureNotImplemented,
37 std::string,
38 << "The following feature has yet to be implemented in PRISMS-PF:\n " << arg1
39 << "\nCheck the issues section of PRISMS-PF's github to see if this feature is under "
40 "development. Additionally, please considering provided a patch to PRISMS-PF if you "
41 "feel that feature is worthwhile for yourself and others.");
42
47DeclExceptionMsg(UnreachableCode, "This code should not have been reached.");
48
53DeclException2(DependencyNotFound,
55 std::string,
56 << "Attempted access of the variable with index " << arg1
57 << " and dependency type " << arg2
58 << " that was not marked as needed. Please check CustomAttributeLoader.");
59
60// NOLINTEND
61
62PRISMS_PF_END_NAMESPACE
DeclExceptionMsg(UnreachableCode, "This code should not have been reached.")
DeclException2(DependencyNotFound, Types::Index, std::string,<< "Attempted access of the variable with index "<< arg1<< " and dependency type "<< arg2<< " that was not marked as needed. Please check CustomAttributeLoader.")
DeclException1(FeatureNotImplemented, std::string,<< "The following feature has yet to be implemented in PRISMS-PF:\n "<< arg1<< "\nCheck the issues section of PRISMS-PF's github to see if this feature is under " "development. Additionally, please considering provided a patch to PRISMS-PF if you " "feel that feature is worthwhile for yourself and others.")
Definition conditional_ostreams.cc:20
unsigned int Index
Type for field indices.
Definition types.h:19