The exception that is thrown when there is a connection error.
Inheritance: NATSException
コード例 #1
0
 internal static bool IsAuthenticationExpiredError(this NATSConnectionException ex)
 => ex?.Message.Equals("'authentication expired'", StringComparison.OrdinalIgnoreCase) == true;
コード例 #2
0
 internal static bool IsAuthorizationViolationError(this NATSConnectionException ex)
 => ex?.Message.Equals("'authorization violation'", StringComparison.OrdinalIgnoreCase) == true;