Reference documentation for deal.II version Git 497f915867 2021-09-17 22:46:48 +0200
\(\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 
25 namespace LACExceptions
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 
90 using namespace LACExceptions;
91 
92 
94 
95 #endif
static ::ExceptionBase & ExcTrilinosError(int arg1)
virtual void print_info(std::ostream &out) const override
Definition: exceptions.cc:34
static ::ExceptionBase & ExcSingular()
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:509
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:487
#define DeclException0(Exception0)
Definition: exceptions.h:464
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:401
static ::ExceptionBase & ExcDifferentBlockIndices()
static ::ExceptionBase & ExcNotQuadratic()
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:400
static ::ExceptionBase & ExcNeedsSparsityPattern()
ExcPETScError(const int error_code)
Definition: exceptions.cc:29