xref: /aosp_15_r20/external/pytorch/test/jit/myexception.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Workerr"""
2*da0073e9SAndroid Build Coastguard WorkerDefine exceptions used in test_exception.py. We define them in a
3*da0073e9SAndroid Build Coastguard Workerseparate file on purpose to make sure the fully qualified exception class name
4*da0073e9SAndroid Build Coastguard Workeris captured correctly in suce cases.
5*da0073e9SAndroid Build Coastguard Worker"""
6*da0073e9SAndroid Build Coastguard Worker
7*da0073e9SAndroid Build Coastguard Worker
8*da0073e9SAndroid Build Coastguard Workerclass MyKeyError(KeyError):
9*da0073e9SAndroid Build Coastguard Worker    pass
10