Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

RingEx::Generic Class Reference

Catch-all exception. More...

#include <rings_exceptions.H>

Inheritance diagram for RingEx::Generic::

RingEx::RingException List of all members.

Detailed Description

Catch-all exception.

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");


The documentation for this class was generated from the following file:
Generated at Mon Oct 11 14:57:41 2004 for GaloisLib by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001