Did I find the right examples for you? yes no

All Samples(1596)  |  Call(703)  |  Derive(891)  |  Import(2)
Base class for all standard Python exceptions that do not represent
interpreter exiting.

src/f/a/fantastico-0.6.0/virtual_env/libs/mysql-connector/python2/examples/warnings.py   fantastico(Download)
            output.append("%d: %s" % (w[1],w[2]))
    else:
        raise StandardError("Got no warnings")
 
    cursor.close()

src/w/i/wiktionary-parser-HEAD/wiktionary_parser/examples/scan.py   wiktionary-parser(Download)
    def run(self):
        if self.has_run:
            raise StandardError('Already Run')
        self.has_run = True
        xml_parser = XMLPageParser(self.xml_file, dePage)

src/m/y/mythbox-HEAD/resources/lib/mysql-connector-python/python2/examples/warnings.py   mythbox(Download)
            output.append("%d: %s" % (w[1],w[2]))
    else:
        raise StandardError("Got no warnings")
 
    cursor.close()

src/b/a/BatchQ-0.1-2-pre-alpha/batchq/contrib/examples/tutorial2_error2.py   BatchQ(Download)
class Model(batch.BatchQ):
    ctrl = batch.Controller(object)
    fnc1 = batch.Function().Qthrow(exception = StandardError("Custom error class"))
    fnc2 = batch.Function().Qthrow("Standard error")
 

src/m/y/mysql-connector-repackaged-0.3.1/python2/examples/warnings.py   mysql-connector-repackaged(Download)
    else:
        print "We should have got warnings."
        raise StandardError("Got no warnings")
 
    db.close()

src/r/a/raygun4py-2.0.0/python2/samples/sampleWithLogging.py   raygun4py(Download)
def buggyMethod():
    raise StandardError("Test exception sent via built-in handler")
 
buggyMethod()

src/r/a/raygun4py-2.0.0/python2/samples/sample.py   raygun4py(Download)
def methodtwo():
    raise StandardError("Test exception sent from raygun4py")
 
sys.excepthook = handle_exception
 

src/p/y/pymacadmin-HEAD/utilities/diskimage_unittesting/tests/example_plist_test.py   pymacadmin(Download)
    returncode = subprocess.call(command)
    if returncode:
      raise StandardError("unable to convert plist to xml1")
    self.imageinfo = plistlib.readPlist(imageinfo_file)
 

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/Error.py   Webware-for-Python(Download)
                error = SystemError(msg)
            else:
                error = StandardError(msg)
            self.writeln('<p>About to raise an error...</p>')
            raise error

src/w/e/Webware-for-Python-1.1.1/CGIWrapper/Examples/Error.py   Webware-for-Python(Download)
"""
 
raise StandardError('Error example')
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next