Changeset 3649


Ignore:
Timestamp:
Sep 21, 2006, 4:28:39 PM (17 years ago)
Author:
ole
Message:

Added Exceptions instead of raising simple strings

Location:
anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py

    r3560 r3649  
    1717    def evaluate(self, vol_id=None, edge_id=None):
    1818        msg = 'Generic class Boundary must be subclassed'
    19         raise msg
     19        raise Exception, msg
    2020
    2121
     
    3232        if domain is None:
    3333            msg = 'Domain must be specified for transmissive boundary'
    34             raise msg
     34            raise Exception, msg
    3535
    3636        self.domain = domain
     
    5959        if conserved_quantities is None:
    6060            msg = 'Must specify one value for each conserved quantity'
    61             raise msg
     61            raise Exception, msg
    6262
    6363        from Numeric import array, Float
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r3629 r3649  
    211211              %(str(missing), filename)
    212212        fid.close()
    213         raise msg
     213        raise Exception, msg
    214214
    215215    #Decide whether this data has a spatial dimension
Note: See TracChangeset for help on using the changeset viewer.