Exception: Affine::CoprimeError
- Inherits:
-
AffineError
- Object
- StandardError
- AffineError
- Affine::CoprimeError
- 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
-
#initialize(a, b) ⇒ CoprimeError
constructor
:nodoc: :notnew:.
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 |