Reference documentation for deal.II version 9.3.3
\(\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\}}\)
exceptions.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2004 - 2019 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16#ifndef dealii_lac_exceptions_h
17#define dealii_lac_exceptions_h
18
19#include <deal.II/base/config.h>
20
22
24
26{
31
36 "This function only works for quadratic objects!");
37
42
47
53 "This function requires that the current object have a "
54 "sparsity pattern attached to it, but no sparsity pattern "
55 "is available. This usually means that there is a missing "
56 "reinit() call which would have added the sparsity pattern.");
57
67 {
68 public:
69 ExcPETScError(const int error_code);
70
71 virtual void
72 print_info(std::ostream &out) const override;
73
74 const int error_code;
75 };
76
82 int,
83 << "An error with error number " << arg1
84 << " occurred while calling a Trilinos function");
85
87} // namespace LACExceptions
88
89
90using namespace LACExceptions;
91
92
94
95#endif
virtual void print_info(std::ostream &out) const override
Definition: exceptions.cc:34
ExcPETScError(const int error_code)
Definition: exceptions.cc:29
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
#define DeclException0(Exception0)
Definition: exceptions.h:470
static ::ExceptionBase & ExcSingular()
static ::ExceptionBase & ExcNeedsSparsityPattern()
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:493
static ::ExceptionBase & ExcDifferentBlockIndices()
static ::ExceptionBase & ExcNotQuadratic()
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:515
static ::ExceptionBase & ExcTrilinosError(int arg1)