libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::ErrorInfo Struct Reference

#include <error.hpp>

Collaboration diagram for sshpp::ErrorInfo:
[legend]

Public Member Functions

std::string to_string () const
 
 operator bool () const noexcept
 

Public Attributes

std::error_code code {}
 
std::string message
 
const char * operation = ""
 
SourceLocation where {}
 

Detailed Description

Captures the libssh textual reason at the point of failure, before any other call can overwrite ssh_get_error(). See docs/design/03 ยง3.3.

Member Function Documentation

◆ to_string()

SSHPP_INLINE std::string sshpp::ErrorInfo::to_string ( ) const

◆ operator bool()

sshpp::ErrorInfo::operator bool ( ) const
inlineexplicitnoexcept

Member Data Documentation

◆ code

std::error_code sshpp::ErrorInfo::code {}

◆ message

std::string sshpp::ErrorInfo::message

◆ operation

const char* sshpp::ErrorInfo::operation = ""

◆ where

SourceLocation sshpp::ErrorInfo::where {}

The documentation for this struct was generated from the following files: