openmedialibrary_platform/Darwin/lib/python2.7/site-packages/twisted/test/raiser.pyx
2014-05-16 01:20:41 +02:00

21 lines
466 B
Cython

# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A trivial extension that just raises an exception.
See L{twisted.test.test_failure.test_failureConstructionWithMungedStackSucceeds}.
"""
class RaiserException(Exception):
"""
A speficic exception only used to be identified in tests.
"""
def raiseException():
"""
Raise L{RaiserException}.
"""
raise RaiserException("This function is intentionally broken")