meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
programming:python:tinyrpc [2024/01/01 18:12] – created niziak | programming:python:tinyrpc [2024/01/01 18:49] (current) – niziak | ||
---|---|---|---|
Line 4: | Line 4: | ||
[[https:// | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | By default dispatcher catches all exceptions in registered methods: [[https:// | ||
+ | |||
+ | <code python> | ||
+ | except Exception as e: | ||
+ | # an error occurred within the method, return it | ||
+ | return request.error_respond(e) | ||
+ | </ | ||
+ | |||
+ | and exception '' | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | TODO: | ||
+ | How to provide more detailed exception do client - i.e. exception type and backtrace ? | ||
+ | Possible solutions: | ||
+ | - Create own '' | ||
+ | - Create own JSONRPCProtocol with changed JSONRPCRequest().error_respond(), | ||
+ | |||