Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ArithmeticException.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ArithmeticException.h (C) 2000-2014 */
9/* */
10/* Exception when an arithmetic error occurs. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_ARITHMETICEXCEPTION_H
13#define ARCANE_UTILS_ARITHMETICEXCEPTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Exception.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
34class ARCANE_UTILS_EXPORT ArithmeticException
35: public Exception
36{
37 public:
38
39 ArithmeticException(const TraceInfo& where);
40 ArithmeticException(const TraceInfo& where, const String& message);
41 ArithmeticException(const TraceInfo& where, const StackTrace& stack_trace);
42 ArithmeticException(const TraceInfo& where, const String& message,
43 const StackTrace& stack_trace);
44 ArithmeticException(const ArithmeticException& ex)
45 : Exception(ex)
46 {}
47 ~ArithmeticException() ARCANE_NOEXCEPT {}
48
49 public:
50
51 ArithmeticException() = delete;
52};
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57} // namespace Arcane
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62#endif
const String & where() const
Location of the exception.
const String & message() const
Exception message.
Exception(const String &name, const String &where)
Information about function call stacks.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --