AnsweredAssumed Answered

Handling error on Logic Hook

Question asked by stalxed stalxed on Jul 12, 2014
Latest reply on Jul 12, 2014 by stalxed stalxed
I use Logic Hook.
I want to disable editing in some cases. Very nontrivial. Using the method before edit in Logic Hook I successfully catch these cases.
But what to do next?

For example:
if ($thisCaseDisable) {
    throw new Exception('Sorry, you cant do it');

I must use the rules of the system SugarCRM and inform the user of a data message(but I dont know how), how to do it?
The documentation I have not found it.