summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py
diff options
context:
space:
mode:
Diffstat (limited to 'cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py')
-rw-r--r--cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py b/cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py
new file mode 100644
index 0000000..672492d
--- /dev/null
+++ b/cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+import sys
+from cds_utils.payload_coder import send_response_data_payload
+
+if __name__ == "__main__":
+ try:
+ raise Exception("Intentionally raised exception!")
+ except Exception as e:
+ print("Intentionally raised exception!")
+ resp_data = {
+ "errorMessage": "Intentionally raised exception!"
+ }
+ send_response_data_payload(resp_data)
+ sys.exit(1)