Exception: Affine::CoprimeError

Inherits:
AffineError
  • Object
show all
Defined in:
lib/affine/errors.rb

Overview

Raised when two numbers that are supposed to be coprime (greatest common denominator of 1) are not.

Keys and moduli from external sources might raise these.

Instance Method Summary collapse

Constructor Details

#initialize(a, b) ⇒ CoprimeError

:nodoc: :notnew:



16
17
18
# File 'lib/affine/errors.rb', line 16

def initialize(a, b) #:nodoc: :notnew:
  super("Expected #{a} to be coprime with #{b}")
end