Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::InvalidArgumentException Class Reference

Exception when a fatal error has occurred. More...

#include <arcane/utils/InvalidArgumentException.h>

Inheritance diagram for Arcane::InvalidArgumentException:
Collaboration diagram for Arcane::InvalidArgumentException:

Public Member Functions

 InvalidArgumentException (const TraceInfo &where, const String &arg_name, int arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, double arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, const String &arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, const void *arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, const String &message, int arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, const String &message, double arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, const String &message, const String &arg)
 InvalidArgumentException (const TraceInfo &where, const String &arg_name, const String &message, const void *arg)
 InvalidArgumentException (const InvalidArgumentException &ex)
virtual void explain (std::ostream &m) const
 Explains the cause of the exception in the stream o.
Public Member Functions inherited from Arcane::Exception
Exceptionoperator= (const Exception &)=delete
 Exception (const String &name, const String &where)
 Exception (const String &name, const TraceInfo &where)
 Exception (const String &name, const String &awhere, const String &message)
 Exception (const String &name, const TraceInfo &trace, const String &message)
 Exception (const String &name, const String &where, const StackTrace &stack_trace)
 Exception (const String &name, const TraceInfo &where, const StackTrace &stack_trace)
 Exception (const String &name, const String &where, const String &message, const StackTrace &stack_trace)
 Exception (const String &name, const TraceInfo &trace, const String &message, const StackTrace &stack_trace)
 Exception (const Exception &)
 Copy constructor.
 ~Exception () ARCCORE_NOEXCEPT override
 Releases resources.
virtual void write (std::ostream &o) const
bool isCollective () const
 True if it is a collective error (concerns all processors).
void setCollective (bool v)
 Sets the collective state of the expression.
void setAdditionalInfo (const String &v)
 Sets the additional information.
const StringadditionalInfo () const
 Returns the additional information.
const StackTracestackTrace () const
 Call stack at the moment of the exception (requires a stacktrace service).
const StringstackTraceString () const
 Call stack at the moment of the exception (requires a stacktrace service).
const Stringmessage () const
 Exception message.
const Stringwhere () const
 Location of the exception.
const Stringname () const
 Name of the exception.

Private Member Functions

template<typename U>
void _init (const U &arg_value)

Private Attributes

String m_arg_name
String m_arg_value
String m_message

Additional Inherited Members

Static Public Member Functions inherited from Arcane::Exception
static bool hasPendingException ()
 Indicates if there are pending exceptions.
static void staticInit ()
Protected Member Functions inherited from Arcane::Exception
void setMessage (const String &msg)
 Sets the exception message.

Detailed Description

Exception when a fatal error has occurred.

Definition at line 31 of file InvalidArgumentException.h.

Constructor & Destructor Documentation

◆ InvalidArgumentException() [1/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
int arg )

Definition at line 29 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [2/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
double arg )

Definition at line 41 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [3/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
const String & arg )

Definition at line 53 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [4/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
const void * arg )

Definition at line 65 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [5/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
const String & message,
int arg )

Definition at line 77 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [6/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
const String & message,
double arg )

Definition at line 91 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [7/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
const String & message,
const String & arg )

Definition at line 105 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [8/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const TraceInfo & where,
const String & arg_name,
const String & message,
const void * arg )

Definition at line 119 of file InvalidArgumentException.cc.

◆ InvalidArgumentException() [9/9]

Arcane::InvalidArgumentException::InvalidArgumentException ( const InvalidArgumentException & ex)

Definition at line 133 of file InvalidArgumentException.cc.

◆ ~InvalidArgumentException()

Arcane::InvalidArgumentException::~InvalidArgumentException ( )
inline

Definition at line 48 of file InvalidArgumentException.h.

Member Function Documentation

◆ _init()

template<typename U>
void Arcane::InvalidArgumentException::_init ( const U & arg_value)
private

Definition at line 145 of file InvalidArgumentException.cc.

◆ explain()

void Arcane::InvalidArgumentException::explain ( std::ostream & o) const
virtual

Explains the cause of the exception in the stream o.

This method allows adding additional information to the exception message.

Reimplemented from Arcane::Exception.

Definition at line 156 of file InvalidArgumentException.cc.

Member Data Documentation

◆ m_arg_name

String Arcane::InvalidArgumentException::m_arg_name
private

Definition at line 56 of file InvalidArgumentException.h.

◆ m_arg_value

String Arcane::InvalidArgumentException::m_arg_value
private

Definition at line 57 of file InvalidArgumentException.h.

◆ m_message

String Arcane::InvalidArgumentException::m_message
private

Definition at line 58 of file InvalidArgumentException.h.


The documentation for this class was generated from the following files: