deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+00:00
\(\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
exceptions.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2004 - 2022 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_lac_exceptions_h
16#define dealii_lac_exceptions_h
17
18#include <deal.II/base/config.h>
19
21
23
25{
35 "This function only works for quadratic objects!");
36
41
46
52 "This function requires that the current object have a "
53 "sparsity pattern attached to it, but no sparsity pattern "
54 "is available. This usually means that there is a missing "
55 "reinit() call which would have added the sparsity pattern.");
56
66 {
67 public:
68 ExcPETScError(const int error_code);
69
70 virtual void
71 print_info(std::ostream &out) const override;
72
73 const int error_code;
74 };
75
81 int,
82 << "An error with error number " << arg1
83 << " occurred while calling a Trilinos function");
84
86} // namespace LACExceptions
87
88
89using namespace LACExceptions;
90
91
93
94#endif
virtual void print_info(std::ostream &out) const override
Definition exceptions.cc:32
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
#define DeclException0(Exception0)
Definition exceptions.h:466
static ::ExceptionBase & ExcSingular()
static ::ExceptionBase & ExcNeedsSparsityPattern()
#define DeclExceptionMsg(Exception, defaulttext)
Definition exceptions.h:489
static ::ExceptionBase & ExcDifferentBlockIndices()
static ::ExceptionBase & ExcNotQuadratic()
#define DeclException1(Exception1, type1, outsequence)
Definition exceptions.h:511
static ::ExceptionBase & ExcTrilinosError(int arg1)