raise Statement : Raise : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Raise »

 

raise Statement


import exceptions, sys

class ConfigError (exceptions.Exception):
    def __init__(self, arg=None):
        self.args = arg

raise ConfigError, "Invalid header."



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» Raise