gambitproject/gambit — pull request #34 by andrioni (2012-05-29 05:36:06+00:00)
Title: New exceptions and checking for mismatch in append_move, insert_move

This pull requests includes two different commits:
- 16e19d8 : changes liap_value property to a method in the BehavProfile class.

- cbf9655 : creates two new kinds of exceptions used throughout the code,
both subclasses of ValueError:
- MismatchError: Raised when an operation between different game
is attempted;
- UndefinedOperationError: Raised when an undefined operation is
attempted.
They are used in the place of some of ValueErrors and
NotImplementedErrors.
This commit also uses the new exceptions to address issue #17.
A test case and documentation are provided.