terminate instrumentation
This commit is contained in:
parent
6a66b2a22c
commit
3235e2ca36
12
rainbowadn/instrument/_terminate.py
Normal file
12
rainbowadn/instrument/_terminate.py
Normal file
@ -0,0 +1,12 @@
|
||||
from .instrumentation import *
|
||||
|
||||
__all__ = ('Terminated', 'Terminate')
|
||||
|
||||
|
||||
class Terminated(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class Terminate(Instrumentation):
|
||||
def instrument(self, method, *args, **kwargs):
|
||||
raise Terminated(*args, *kwargs.values())
|
Loading…
Reference in New Issue
Block a user