ICON Community Interface 0.4.0
Loading...
Searching...
No Matches
exceptions.py
Go to the documentation of this file.
1import comin
2
3try:
4 comin.callback_get_ep_name(666)
5 assert False, "No Exception was raised"
6except comin.ComInError as exc:
7 comin.print_info(f"Check successful: {exc}")
8
9
10@comin.EP_SECONDARY_CONSTRUCTOR
11def sec_ctr():
12 # register_callback after primary constructor
13 try:
14
15 @comin.EP_ATM_TIMELOOP_START
16 def foo():
17 print("bar")
18
19 assert False, "No Exception was raised"
20 except comin.ComInError as exc:
21 comin.print_info(f"Check successful: {exc}")
22
23
24@comin.EP_ATM_TIMELOOP_BEFORE
26 try:
27 metadata = comin.metadata(("foobar", 12))
28 comin.print_info(dict(metadata))
29 assert False, "No Exception was raised"
30 except comin.ComInError as exc:
31 comin.print_info(f"Check successful: {exc}")
time_loop_start()
Definition exceptions.py:25