choose runrun module you see python shell window open the application displays the expected exception textas shown in figure - figure - raising an excep tion only requires call to raise passing error information to the caller python provides exceptionally flexible error handling in that you can pass information to the caller (the code that is calling your codeno matter which exception you use of coursethe caller may not know that the information is availablewhich leads to lot of discussion on the topic if you're working with someone else' code and don' know whether additional information is availableyou can always use the technique described in the "obtaining list of exception argumentssidebar earlier in this to find it you may have wondered whether you could provide better information when working with valueerror exception than with an exception provided natively by python the following steps show that you can modify the output so that it does include helpful information this example also appears with the downloadable source code as raiseexception py open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each linetryex valueerror(ex strerror "value must be within and raise ex except valueerror as eprint("valueerror exception!" strerror