[wxPython-users] CustomTreeCtrl Patches
Christopher Barker
Chris.Barker at noaa.gov
Thu Dec 14 15:27:28 PST 2006
Andrea Gavana wrote:
> BTW, if raising a
> string error is now deprecated in Python 2.5, what am I supposed to
> raise if I catch an exception and I want to display a custom error
> message?
Ideally, you create an appropriate exception derived from one of the
pre-built ones. However, if you don't want to do all that, just use the
generic one:
raise Exception("This is the string I want to display")
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list