#include <rings_exceptions.H>
Inheritance diagram for RingEx::Generic::

It could happen that a specific ring can raise some exception which makes sense for that ring only. For example, when asking for GF(n), the finite field with n elements, an exception must be thrown if n is not the power of a prime number. In order to accomodate for these ring-specific exceptions, the Generic exception is provided. The string parameter of its only constructor can be used to specify the reason of the exception, for example,
if (not is_prime_power(n))
throw RingEx::Generic("Field size is not the power of a prime number");
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001