From 354a5c646e12aa5fbed94f818c3e4b72f05735e3 Mon Sep 17 00:00:00 2001 From: Jenny Shen Date: Wed, 15 Feb 2023 10:49:27 -0500 Subject: [PATCH] [rubygems/rubygems] Add WebauthnVerificationError Exception https://github.com/rubygems/rubygems/commit/932c111f2c --- lib/rubygems/exceptions.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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