Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ArgumentException.cc
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/* ArgumentException.cc (C) 2000-2025 */
9/* */
10/* Exception when an argument is invalid. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/base/String.h"
15#include "arccore/base/ArgumentException.h"
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
20namespace Arcane
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26ArgumentException::
27ArgumentException(const String& awhere)
28: Exception("ArgumentException", awhere, "Bad argument")
29{
30}
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34
35ArgumentException::
36ArgumentException(const String& awhere, const String& amessage)
37: Exception("ArgumentException", awhere, amessage)
38{
39}
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
43
44ArgumentException::
45ArgumentException(const TraceInfo& awhere)
46: Exception("ArgumentException", awhere, "Bad argument")
47{
48}
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53ArgumentException::
54ArgumentException(const TraceInfo& awhere, const String& amessage)
55: Exception("ArgumentException", awhere, amessage)
56{
57}
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62ArgumentException::
63ArgumentException(const ArgumentException& rhs) ARCCORE_NOEXCEPT
64: Exception(rhs)
65{
66}
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71ArgumentException::
72~ArgumentException() ARCCORE_NOEXCEPT
73{
74}
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
78
79} // namespace Arcane
80
81/*---------------------------------------------------------------------------*/
82/*---------------------------------------------------------------------------*/
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --