summary refs log tree commit diff
path: root/crypto/src/tls/TlsProtocol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/TlsProtocol.cs')
-rw-r--r--crypto/src/tls/TlsProtocol.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/crypto/src/tls/TlsProtocol.cs b/crypto/src/tls/TlsProtocol.cs

index 92322e949..55fb9f745 100644 --- a/crypto/src/tls/TlsProtocol.cs +++ b/crypto/src/tls/TlsProtocol.cs
@@ -782,12 +782,12 @@ namespace Org.BouncyCastle.Tls catch (TlsFatalAlert e) { HandleException(e.AlertDescription, "Failed to read record", e); - throw e; + throw; } catch (IOException e) { HandleException(AlertDescription.internal_error, "Failed to read record", e); - throw e; + throw; } catch (Exception e) { @@ -813,20 +813,20 @@ namespace Org.BouncyCastle.Tls return; } } - catch (TlsFatalAlertReceived e) + catch (TlsFatalAlertReceived) { // Connection failure already handled at source - throw e; + throw; } catch (TlsFatalAlert e) { HandleException(e.AlertDescription, "Failed to read record", e); - throw e; + throw; } catch (IOException e) { HandleException(AlertDescription.internal_error, "Failed to read record", e); - throw e; + throw; } catch (Exception e) { @@ -849,12 +849,12 @@ namespace Org.BouncyCastle.Tls catch (TlsFatalAlert e) { HandleException(e.AlertDescription, "Failed to process record", e); - throw e; + throw; } catch (IOException e) { HandleException(AlertDescription.internal_error, "Failed to process record", e); - throw e; + throw; } catch (Exception e) { @@ -873,12 +873,12 @@ namespace Org.BouncyCastle.Tls catch (TlsFatalAlert e) { HandleException(e.AlertDescription, "Failed to write record", e); - throw e; + throw; } catch (IOException e) { HandleException(AlertDescription.internal_error, "Failed to write record", e); - throw e; + throw; } catch (Exception e) { @@ -898,12 +898,12 @@ namespace Org.BouncyCastle.Tls catch (TlsFatalAlert e) { HandleException(e.AlertDescription, "Failed to write record", e); - throw e; + throw; } catch (IOException e) { HandleException(AlertDescription.internal_error, "Failed to write record", e); - throw e; + throw; } catch (Exception e) {