You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Petr Stehlík edited this page Nov 13, 2017
·
1 revision
If you need to report an error to the frontend you must subclass the ApiException class which implements the needed functionality to provide you with unified error reporting to the frontend.
ApiException
Liberouter GUI provides you with the ApiException class which you should use for reporting errors back to frontend. You should subclass the ApiException in order to provide useful and straightforward logging. In your module's backend/ folder, create file error.py: