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

Exception when a signal occurs. More...

#include <arcane/utils/SignalException.h>

Inheritance diagram for Arcane::SignalException:
Collaboration diagram for Arcane::SignalException:

Public Types

enum  eSignalType {
  ST_Unknown , ST_FloatingException , ST_SegmentationFault , ST_BusError ,
  ST_Alarm
}

Public Member Functions

 SignalException (const String &where, eSignalType st, int signal_number)
 SignalException (const String &where, const StackTrace &stack_trace, eSignalType st, int signal_number)
 SignalException (const SignalException &ex)
virtual void explain (std::ostream &m) const
 Explains the cause of the exception in the stream o.
eSignalType signalType () const
int signalNumber () const
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_message
eSignalType m_signal_type
int m_signal_number

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 signal occurs.

Definition at line 32 of file SignalException.h.

Member Enumeration Documentation

◆ eSignalType

enum Arcane::SignalException::eSignalType

Definition at line 37 of file SignalException.h.

Constructor & Destructor Documentation

◆ SignalException() [1/3]

Arcane::SignalException::SignalException ( const String & where,
eSignalType st,
int signal_number )

Definition at line 28 of file SignalException.cc.

◆ SignalException() [2/3]

Arcane::SignalException::SignalException ( const String & where,
const StackTrace & stack_trace,
eSignalType st,
int signal_number )

Definition at line 39 of file SignalException.cc.

◆ SignalException() [3/3]

Arcane::SignalException::SignalException ( const SignalException & ex)

Definition at line 51 of file SignalException.cc.

◆ ~SignalException()

Arcane::SignalException::~SignalException ( )
inline

Definition at line 52 of file SignalException.h.

Member Function Documentation

◆ explain()

void Arcane::SignalException::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 63 of file SignalException.cc.

◆ signalNumber()

int Arcane::SignalException::signalNumber ( ) const

Definition at line 102 of file SignalException.cc.

◆ signalType()

SignalException::eSignalType Arcane::SignalException::signalType ( ) const

Definition at line 93 of file SignalException.cc.

Member Data Documentation

◆ m_message

String Arcane::SignalException::m_message
private

Definition at line 62 of file SignalException.h.

◆ m_signal_number

int Arcane::SignalException::m_signal_number
private

Definition at line 64 of file SignalException.h.

◆ m_signal_type

eSignalType Arcane::SignalException::m_signal_type
private

Definition at line 63 of file SignalException.h.


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