Show
Ignore:
Timestamp:
01/11/08 19:08:24 (16 years ago)
Author:
jerome
Message:

Moved all exceptions definitions to a dedicated module.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r3276 r3288  
    2727from mx import DateTime 
    2828 
    29 class PyKotaStorageError(Exception): 
    30     """An exception for database related stuff.""" 
    31     def __init__(self, message = ""): 
    32         self.message = message 
    33         Exception.__init__(self, message) 
    34     def __repr__(self): 
    35         return self.message 
    36     __str__ = __repr__ 
    37          
    38          
     29from pykota.errors import PyKotaStorageError 
     30 
    3931class StorageObject : 
    4032    """Object present in the database."""