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 @@ -214,6 +214,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