ssh::SshException Class Reference

This class describes a SSH Exception object. More...

#include <include/libssh/libsshpp.hpp>


Public Member Functions

int getCode ()
 returns the Error code
std::string getError ()
 returns the error message of the last exception


Detailed Description

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.


Member Function Documentation

int ssh::SshException::getCode (  )  [inline]

returns the Error code

Returns:
SSH_FATAL Fatal error happened (not recoverable)

SSH_REQUEST_DENIED Request was denied by remote host

See also:
ssh_get_error_code

std::string ssh::SshException::getError (  )  [inline]

returns the error message of the last exception

Returns:
pointer to a c string containing the description of error
See also:
ssh_get_error


The documentation for this class was generated from the following file:
Generated on 26 Jul 2013 for libssh by  doxygen 1.4.7