libssh
0.11.0
The SSH library
|
if defined, disable C++ exceptions for libssh c++ wrapper More...
#include <libsshpp.hpp>
Public Member Functions | |
SshException (ssh_session csession) | |
SshException (const SshException &e) | |
int | getCode () |
returns the Error code | |
std::string | getError () |
returns the error message of the last exception | |
if defined, disable C++ exceptions for libssh c++ wrapper
Some people do not like C++ exceptions. With this define, we give the choice to use or not exceptions.
This class describes a SSH Exception object. This object can be thrown by several SSH functions that interact with the network, and may fail because of socket, protocol or memory errors.
|
inline |
returns the Error code
|
inline |
returns the error message of the last exception