Add new generic TLS error code

This commit is contained in:
Peter Thorson
2014-02-28 08:26:50 -06:00
parent 89ac45e60a
commit d36925ce7d

View File

@@ -172,7 +172,10 @@ enum value {
timeout,
/// read or write after shutdown
action_after_shutdown
action_after_shutdown,
/// Other TLS error
tls_error,
};
class category : public lib::error_category {
@@ -203,6 +206,8 @@ class category : public lib::error_category {
return "Timer Expired";
case action_after_shutdown:
return "A transport action was requested after shutdown";
case tls_error:
return "Generic TLS related error";
default:
return "Unknown";
}