Reference documentation for deal.II version Git 1c31021568 2020-01-21 10:20:35 -0500
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
exceptions.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2018 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 
21 #include <deal.II/base/exceptions.h>
22 
23 DEAL_II_NAMESPACE_OPEN
24 
25 namespace LACExceptions
26 {
31 
36  "This function only works for quadratic objects!");
37 
42 
47 
57  {
58  public:
59  ExcPETScError(const int error_code);
60 
61  virtual void
62  print_info(std::ostream &out) const override;
63 
64  const int error_code;
65  };
66 
72  int,
73  << "An error with error number " << arg1
74  << " occurred while calling a Trilinos function");
75 
77 } // namespace LACExceptions
78 
79 
80 using namespace LACExceptions;
81 
82 
83 DEAL_II_NAMESPACE_CLOSE
84 
85 #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:518
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:496
#define DeclException0(Exception0)
Definition: exceptions.h:473
static ::ExceptionBase & ExcDifferentBlockIndices()
static ::ExceptionBase & ExcNotQuadratic()