#!/usr/bin/env python
# IntegrationError.py
#   Copyright (C) 2006 CCLRC, Graeme Winter
#
#   This code is distributed under the BSD license, a copy of which is 
#   included in the root directory of this package.
# 
# An exception to be raised when an integration program decides that there 
# is a specific probllem with integration - this should be recoverable.

from exceptions import Exception

class IntegrationError(Exception):
    '''An exception to be raised when a lattice is not right.'''

    def __init__(self, value):
        self.parameter = value

    def __str__(self):
        return repr(self.parameter)

if __name__ == '__main__':
    raise IntegrationError, 'rmsd variation too large'

