Implement CrossTenantExceptions to manage tenant access restrictions errors
Description
Coming from:
When you are running a process or doing request via REST API, the only way to be sure that there was a cross tenant error is getting the error message and checking for the cross tenant word. (see MTestTest).
This is error prone, if the message ever gets changed or is translated, all these validations will be lost. It is better to create a custom exception for this cases.
Coming from:
When you are running a process or doing request via REST API, the only way to be sure that there was a cross tenant error is getting the error message and checking for the cross tenant word. (see MTestTest).
This is error prone, if the message ever gets changed or is translated, all these validations will be lost. It is better to create a custom exception for this cases.