|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Exception thrown when a signal operation fails. More...
#include <ah-signal.H>
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_ |
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.
|
inline |
Constructs a SignalError.
| msg | Error message describing the failure. |
| signo | The signal number involved (-1 if not applicable). |
| err | The errno value at the time of failure. |
Definition at line 107 of file ah-signal.H.
|
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().
|
inlinenoexcept |
Returns the signal number involved in the error.
Definition at line 111 of file ah-signal.H.
References signal_num_.
Referenced by TEST().
|
private |
Definition at line 98 of file ah-signal.H.
Referenced by error_code().
|
private |
Definition at line 97 of file ah-signal.H.
Referenced by signal_number().