throw Abort()
Environment: server.
Use throw Abort() to implement permissions and other guards, see Guides > Permissions.
Abortis Telefunc's way of identifying expected errors, and passing error data to the client. Other errors (e.g.,throw new Error()) are treated as unexpected (bugs), seethrow Abort()vsthrow new Error().
You can also call throw Abort(someValue) for implementing getContext() wrappers, see Guides > Permissions > getContext() wrapping.