diff options
author | Jenny Shen <jenny.shen@shopify.com> | 2023-02-15 10:49:27 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-12 11:51:03 +0900 |
commit | 354a5c646e12aa5fbed94f818c3e4b72f05735e3 (patch) | |
tree | ec06ed4acd88ea48a223a364e13c6be12811f8eb /lib/rubygems | |
parent | 332c4b672637c832bfa4ade64994b28de9fa6f64 (diff) | |
download | ruby-354a5c646e12aa5fbed94f818c3e4b72f05735e3.tar.gz |
[rubygems/rubygems] Add WebauthnVerificationError Exception
https://github.com/rubygems/rubygems/commit/932c111f2c
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/exceptions.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rubygems/exceptions.rb b/lib/rubygems/exceptions.rb index 9525b84f17..65caaab8b1 100644 --- a/lib/rubygems/exceptions.rb +++ b/lib/rubygems/exceptions.rb @@ -215,6 +215,16 @@ class Gem::RubyVersionMismatch < Gem::Exception; end class Gem::VerificationError < Gem::Exception; end ## +# Raised by Gem::WebauthnListener when an error occurs during security +# device verification. + +class Gem::WebauthnVerificationError < Gem::Exception + def initialize(message) + super "Security device verification failed: #{message}" + end +end + +## # Raised to indicate that a system exit should occur with the specified # exit_code |