HWRF  trunk@4391
Public Member Functions | Public Attributes | List of all members
hwrf.storminfo.InvalidBasinError Class Reference

This exception is raised when an invalid Tropical Cyclone basin is found. More...

Detailed Description

This exception is raised when an invalid Tropical Cyclone basin is found.

The invalid basin is available as self.basin, and the subbasin is self.subbasin (which might be None).

Definition at line 46 of file storminfo.py.

Inheritance diagram for hwrf.storminfo.InvalidBasinError:
hwrf.storminfo.StormInfoError hwrf.exceptions.HWRFError

Public Member Functions

def __init__
 InvalidBasinError constructor. More...
 
def __str__ (self)
 Return a human-readable string representation of this error.
 
def __repr__ (self)
 Return a Pythonic representation of this error. More...
 

Public Attributes

 basin
 The problematic basin.
 
 subbasin
 The problematic subbasin, or None if no subbasin was given. More...
 

Constructor & Destructor Documentation

def hwrf.storminfo.InvalidBasinError.__init__ (   self,
  basin,
  subbasin = None 
)

InvalidBasinError constructor.

Parameters
basinthe basin in question
subbasinthe subbasin, if known. For example, the North Indian Ocean (IO) is split into subbasins Arabian Sea (AA) and Bay of Bengal (BB)

Definition at line 50 of file storminfo.py.

Member Function Documentation

def hwrf.storminfo.InvalidBasinError.__repr__ (   self)

Return a Pythonic representation of this error.

Definition at line 72 of file storminfo.py.

Referenced by produtil.prog.Runner.__str__().

Member Data Documentation

hwrf.storminfo.InvalidBasinError.subbasin

The problematic subbasin, or None if no subbasin was given.

For example, the North Indian Ocean (IO) is split into subbasins Arabian Sea (AA) and Bay of Bengal (BB)

Definition at line 57 of file storminfo.py.

Referenced by hwrf.storminfo.InvalidBasinError.__repr__(), and hwrf.storminfo.InvalidBasinError.__str__().


The documentation for this class was generated from the following file: