Reference documentation for deal.II version Git 840703ecf3 2019-10-14 17:15:20 -0400
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
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/exceptions.h>
20 
21 DEAL_II_NAMESPACE_OPEN
22 
23 namespace LACExceptions
24 {
29 
34  "This function only works for quadratic objects!");
35 
40 
45 
55  {
56  public:
57  ExcPETScError(const int error_code);
58 
59  virtual void
60  print_info(std::ostream &out) const override;
61 
62  const int error_code;
63  };
64 
70  int,
71  << "An error with error number " << arg1
72  << " occurred while calling a Trilinos function");
73 
75 } // namespace LACExceptions
76 
77 
78 using namespace LACExceptions;
79 
80 
81 DEAL_II_NAMESPACE_CLOSE
82 
83 #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()