Usually, in Delphi application (like in most high-level languages), errors
are handled via exceptions. By default, any
raised on the server side, within an
method, will be intercepted, and transmitted as an error to the client side,
then a safe but somewhat obfuscated
will be raised on the client side, containing additional information serialized
You may wonder why exceptions are not transmitted and raised directly on the client side, with our mORMot framework interface-based services, as if they were executed locally.
We will now detail some arguments, and patterns to be followed.