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

Exception when an internal error occurs. More...

#include <arcane/core/ArcaneException.h>

Inheritance diagram for Arcane::InternalErrorException:
Collaboration diagram for Arcane::InternalErrorException:

Public Member Functions

 InternalErrorException (const String &where, const String &why)
 InternalErrorException (const TraceInfo &where, const String &why)
 InternalErrorException (const InternalErrorException &ex) ARCANE_NOEXCEPT
void explain (std::ostream &m) const override
 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 Attributes

String m_why

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 an internal error occurs.

Definition at line 107 of file ArcaneException.h.

Constructor & Destructor Documentation

◆ InternalErrorException() [1/3]

Arcane::InternalErrorException::InternalErrorException ( const String & where,
const String & why )

Definition at line 76 of file ArcaneException.cc.

◆ InternalErrorException() [2/3]

Arcane::InternalErrorException::InternalErrorException ( const TraceInfo & where,
const String & why )

Definition at line 86 of file ArcaneException.cc.

◆ InternalErrorException() [3/3]

Arcane::InternalErrorException::InternalErrorException ( const InternalErrorException & ex)

Definition at line 96 of file ArcaneException.cc.

◆ ~InternalErrorException()

Arcane::InternalErrorException::~InternalErrorException ( )
inlineoverride

Definition at line 115 of file ArcaneException.h.

Member Function Documentation

◆ explain()

void Arcane::InternalErrorException::explain ( std::ostream & o) const
overridevirtual

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 106 of file ArcaneException.cc.

Member Data Documentation

◆ m_why

String Arcane::InternalErrorException::m_why
private

Definition at line 123 of file ArcaneException.h.


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