Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
SignalError Class Reference

Exception thrown when a signal operation fails. More...

#include <ah-signal.H>

Inheritance diagram for SignalError:
[legend]
Collaboration diagram for SignalError:
[legend]

Public Member Functions

 SignalError (const std::string &msg, int signo=-1, int err=0)
 Constructs a SignalError.
 
int signal_number () const noexcept
 Returns the signal number involved in the error.
 
int error_code () const noexcept
 Returns the errno value at the time of failure.
 

Private Attributes

int signal_num_
 
int errno_code_
 

Detailed Description

Exception thrown when a signal operation fails.

Contains the signal number and errno that caused the failure.

Definition at line 95 of file ah-signal.H.

Constructor & Destructor Documentation

◆ SignalError()

SignalError::SignalError ( const std::string &  msg,
int  signo = -1,
int  err = 0 
)
inline

Constructs a SignalError.

Parameters
msgError message describing the failure.
signoThe signal number involved (-1 if not applicable).
errThe errno value at the time of failure.

Definition at line 107 of file ah-signal.H.

Member Function Documentation

◆ error_code()

int SignalError::error_code ( ) const
inlinenoexcept

Returns the errno value at the time of failure.

Definition at line 114 of file ah-signal.H.

References errno_code_.

Referenced by TEST().

◆ signal_number()

int SignalError::signal_number ( ) const
inlinenoexcept

Returns the signal number involved in the error.

Definition at line 111 of file ah-signal.H.

References signal_num_.

Referenced by TEST().

Member Data Documentation

◆ errno_code_

int SignalError::errno_code_
private

Definition at line 98 of file ah-signal.H.

Referenced by error_code().

◆ signal_num_

int SignalError::signal_num_
private

Definition at line 97 of file ah-signal.H.

Referenced by signal_number().


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