lib/ssl_expiry/errors.rb in ssl_expiry-1.0.3 vs lib/ssl_expiry/errors.rb in ssl_expiry-1.0.4

- old
+ new

@@ -1,5 +1,19 @@ -# frozen_string_literal: true +class SSLExpiry + # + # Catch all - something bad happened but we don't know what + # + class UnknownError < StandardError + def initialize(msg = 'Something bad happen!') + super + end + end -module SSLExpiry - class SSLError < StandardError; end + # + # User supplied an invalid token (instead of a missing token) + # + class SSLError < StandardError + def initialize(msg = 'SSL Error') + super + end + end end