lib/socketry/exceptions.rb in socketry-0.4.0 vs lib/socketry/exceptions.rb in socketry-0.5.0
- old
+ new
@@ -29,9 +29,12 @@
module SSL
# Errors related to SSL
Error = Class.new(Socketry::Error)
+ # Certificate could not be verified
+ CertificateVerifyError = Class.new(Socketry::SSL::Error)
+
# Hostname verification error
- HostnameError = Class.new(Socketry::SSL::Error)
+ HostnameError = Class.new(CertificateVerifyError)
end
end