Reference documentation for deal.II version 8.1.0
exceptions.h
1 // ---------------------------------------------------------------------
2 // @f$Id: exceptions.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2004 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__lac_exceptions_h
18 #define __deal2__lac_exceptions_h
19 
21 
23 
24 namespace LACExceptions
25 {
30 
35  DeclException0 (ExcNotQuadratic);
36 
41  DeclException0 (ExcSingular);
42 
47  DeclException0 (ExcDifferentBlockIndices);
48 
54  DeclException1 (ExcPETScError,
55  int,
56  << "An error with error number " << arg1
57  << " occurred while calling a PETSc function");
58 
64  DeclException1 (ExcTrilinosError,
65  int,
66  << "An error with error number " << arg1
67  << " occurred while calling a Trilinos function");
68 
70 }
71 
72 
73 using namespace LACExceptions;
74 
75 
76 DEAL_II_NAMESPACE_CLOSE
77 
78 #endif
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:515
#define DeclException0(Exception0)
Definition: exceptions.h:505