source: mauRepo/MolesManager/trunk/src/libs/migration/exception/exceptions.py @ 8014

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/libs/migration/exception/exceptions.py@8014
Revision 8014, 768 bytes checked in by mnagni, 8 years ago (diff)

The tables are correctly generated and the migration does not show major problem. Good!

Line 
1'''
2Created on 15 Nov 2011
3
4@author: mnagni
5'''
6class NoAssociatedDeployments(Exception):
7    def __init__(self, value):
8        self.value = value
9    def __str__(self):
10        return "The DataEntity with ID %s has no associated deployments" % (self.value)
11   
12class NoCreationDate(Exception):
13    def __init__(self, value):
14        self.value = value
15    def __str__(self):
16        return "The resource with ID %s has no creation date" % (self.value) 
17   
18class NoDataLineage(Exception):
19    def __init__(self, value):
20        '''
21        @param value: the full eXist path of the associated resource
22        '''       
23        self.value = value
24    def __str__(self):
25        return "The resource with path %s has no moles:lineage value" % (self.value)       
Note: See TracBrowser for help on using the repository browser.