-
Notifications
You must be signed in to change notification settings - Fork 11
Here are some FAQ regarding architecture of the system. Answers may include some opinionated advices/howtos.
In the files client/src/lib/axios.js
and server/app-builder.js
you can see how are InteroperableErrors used for connecting server and client.
In the file app-builder.js
is a section error handlers. If while handling client's request on the server error happens, it gets formatted here and is transferred to the client. Client uses the axios.js
file, where errors from server are caught and rethrown on the client.
Therefore, the same error is thrown on the server as is on the client. You can also see there that normal errors, not of type InteroperableError, are handled similarly, but they keep just the same error message (not the same error type).