15struct NEFORCE_API ssl_exception final : thirdparty_exception {
16 static int last_error()
noexcept;
17 static string last_error_message();
19 explicit ssl_exception(
const char* info =
"SSL Operation Failed.",
const char*
type = static_type,
20 const int code = last_error()) noexcept :
21 thirdparty_exception(info,
type,
code) {}
23 explicit ssl_exception(
const int code) :
24 thirdparty_exception(last_error_message().
data(), static_type,
code) {}
26 explicit ssl_exception(
const exception& e) :
27 thirdparty_exception(e) {}
29 ~ssl_exception()
override =
default;
31 static constexpr auto static_type =
"ssl_exception";