Reference documentation for deal.II version 9.2.0
\(\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 
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 
84 
85 #endif
DeclExceptionMsg
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:496
ExceptionBase
Definition: exceptions.h:49
LACExceptions
Definition: exceptions.h:25
LACExceptions::ExcNotQuadratic
static ::ExceptionBase & ExcNotQuadratic()
LACExceptions::ExcSingular
static ::ExceptionBase & ExcSingular()
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
LACExceptions::ExcDifferentBlockIndices
static ::ExceptionBase & ExcDifferentBlockIndices()
DeclException1
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:518
exceptions.h
LACExceptions::ExcPETScError::error_code
const int error_code
Definition: exceptions.h:64
LACExceptions::ExcTrilinosError
static ::ExceptionBase & ExcTrilinosError(int arg1)
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
LACExceptions::ExcPETScError
Definition: exceptions.h:56
LACExceptions::ExcPETScError::ExcPETScError
ExcPETScError(const int error_code)
Definition: exceptions.cc:29
config.h
LACExceptions::ExcPETScError::print_info
virtual void print_info(std::ostream &out) const override
Definition: exceptions.cc:34
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359