Reference documentation for deal.II version 9.0.0
exceptions.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2017 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 at
12 // the top level of the deal.II distribution.
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 print_info (std::ostream &out) const;
60 
61  const int error_code;
62  };
63 
69  int,
70  << "An error with error number " << arg1
71  << " occurred while calling a Trilinos function");
72 
74 }
75 
76 
77 using namespace LACExceptions;
78 
79 
80 DEAL_II_NAMESPACE_CLOSE
81 
82 #endif
static ::ExceptionBase & ExcTrilinosError(int arg1)
virtual void print_info(std::ostream &out) const
Definition: exceptions.cc:35
static ::ExceptionBase & ExcSingular()
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:346
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:335
#define DeclException0(Exception0)
Definition: exceptions.h:323
static ::ExceptionBase & ExcDifferentBlockIndices()
static ::ExceptionBase & ExcNotQuadratic()