lib/affine/errors.rb in affine-0.2.1 vs lib/affine/errors.rb in affine-0.2.2

- old
+ new

@@ -11,20 +11,20 @@ # 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. class CoprimeError < AffineError - def initialize(a, b) #:nodoc: + def initialize(a, b) #:nodoc: :notnew: super("Expected #{a} to be coprime with #{b}") end end # Raised when an input number is larger than the modulus. # # Plaintexts or ciphertexts from external sources might # raise these. class RangeError < AffineError - def initialize(n, mod) #:nodoc: + def initialize(n, mod) #:nodoc: :notnew: super("Expected input #{n} to be smaller than modulus #{mod}") end end end