libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
error.hpp File Reference
#include <sshpp/config.hpp>
#include <sshpp/export.hpp>
#include <string>
#include <system_error>
Include dependency graph for error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sshpp::SourceLocation
 Minimal std::source_location-like shim (this library targets C++17). More...
 
struct  std::is_error_code_enum< sshpp::errc >
 
struct  std::is_error_code_enum< sshpp::sftp_errc >
 
struct  sshpp::ErrorInfo
 
class  sshpp::Error
 
class  sshpp::ConnectionError
 
class  sshpp::TimeoutError
 
class  sshpp::CancelledError
 
class  sshpp::HostKeyError
 
class  sshpp::AuthError
 
class  sshpp::KeyError
 
class  sshpp::ChannelError
 
class  sshpp::SftpError
 
class  sshpp::ScpError
 
class  sshpp::ForwardingError
 
class  sshpp::ServerError
 
class  sshpp::UsageError
 

Namespaces

namespace  sshpp
 
namespace  std
 

Macros

#define SSHPP_HERE   ::sshpp::SourceLocation{__FILE__, __LINE__, __func__}
 

Enumerations

enum class  sshpp::errc : int {
  sshpp::ok = 0 , sshpp::fatal , sshpp::request_denied , sshpp::interrupted ,
  sshpp::would_block , sshpp::timed_out , sshpp::cancelled , sshpp::not_connected ,
  sshpp::already_connected , sshpp::connection_lost , sshpp::protocol_error , sshpp::banner_exchange_failed ,
  sshpp::key_exchange_failed , sshpp::rekey_failed , sshpp::host_key_unknown , sshpp::host_key_changed ,
  sshpp::host_key_type_mismatch , sshpp::host_key_rejected , sshpp::known_hosts_io_error , sshpp::auth_denied ,
  sshpp::auth_partial , sshpp::auth_method_unavailable , sshpp::auth_no_more_methods , sshpp::passphrase_required ,
  sshpp::passphrase_incorrect , sshpp::agent_unavailable , sshpp::gssapi_error , sshpp::key_import_failed ,
  sshpp::key_export_failed , sshpp::key_generation_failed , sshpp::unsupported_key_type , sshpp::channel_open_failed ,
  sshpp::channel_closed , sshpp::channel_eof , sshpp::channel_request_failed , sshpp::pty_request_failed ,
  sshpp::sftp_unavailable , sshpp::scp_error , sshpp::forwarding_failed , sshpp::x11_failed ,
  sshpp::invalid_handle , sshpp::invalid_argument , sshpp::unsupported_operation , sshpp::out_of_memory ,
  sshpp::unknown
}
 
enum class  sshpp::sftp_errc : int {
  sshpp::ok = 0 , sshpp::eof = 1 , sshpp::no_such_file = 2 , sshpp::permission_denied = 3 ,
  sshpp::failure = 4 , sshpp::bad_message = 5 , sshpp::no_connection = 6 , sshpp::connection_lost = 7 ,
  sshpp::op_unsupported = 8 , sshpp::invalid_handle = 9 , sshpp::no_such_path = 10 , sshpp::file_already_exists = 11 ,
  sshpp::write_protect = 12 , sshpp::no_media = 13 , sshpp::invalid_parameter = 14
}
 

Functions

SSHPP_INLINE const std::error_category & sshpp::ssh_category () noexcept
 
SSHPP_INLINE const std::error_category & sshpp::sftp_category () noexcept
 
SSHPP_INLINE std::error_code sshpp::make_error_code (errc e) noexcept
 
SSHPP_INLINE std::error_code sshpp::make_error_code (sftp_errc e) noexcept
 
SSHPP_INLINE void sshpp::throw_error (ErrorInfo info)
 

Macro Definition Documentation

◆ SSHPP_HERE

#define SSHPP_HERE   ::sshpp::SourceLocation{__FILE__, __LINE__, __func__}