aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/test/raiser.pyx
blob: 820540ec6ff1d5a17abacb3527ee00d9e83a4a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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")